MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1186/s13054-026-05894-1

Медицинская библиотека · Critical care (London, England) · 2026

In-hospital testing of NIVPredict - an AI tool for early prediction of non-invasive ventilation outcome in acute respiratory failure.

Yu Hang, Saffaran Sina, Ali Abdisamad, Henry Catherine, Mustfa Naveed, Thomas Ajit, Rajhan Ashwin, Isrhad Sannaan, Weaver Liam, Tonelli Roberto, Menga Luca S, Zhang Qingchen, Samadi Moein Einollahzadeh, Schuppert Andreas, Laffey John G, Camporota Luigi, Esquinas Antonio M, Grieco Domenico L, Antonelli Massimo, de Lima Lucas Martins, Kawano-Dourado Letícia, Maia Israel S, Cavalcanti Alexandre Biasi, Clini Enrico, Scott Timothy E, Bates Declan G

СтатьяПеревод в очереди

Аннотация

BACKGROUND

Successful non-invasive ventilation (NIV) reduces ICU length of stay, the need for intubation and the risk of death. However, patients who fail NIV and require intubation have a higher risk of death. We developed NIVPredict, an easy-to-use web-based AI tool to predict NIV outcome within two hours of initiation in patients with acute respiratory failure (ARF) from diverse aetiologies and tested its useability in a hospital setting.

METHODS

This study included data from immunocompromised and immunocompetent patients with hypoxemic ARF due to pneumonia, sepsis or COVID-19, and hypercapnic ARF due to acute exacerbation of chronic obstructive pulmonary disease or obesity hypoventilation syndrome. The tool uses the recently proposed Tabular Prior-Data Fitted Network (TabPFN) machine learning model and was trained using a dataset of routinely collected measurements taken within one hour after NIV initiation in 665 ARF patients from the recent RENOVATE trial in Brazil. Initial external validation of the model was conducted on a dataset of 422 ARF patients from Italy, Spain, and the USA. Subsequently, the useability of a web-based tool based on the model was tested by clinicians at the University Hospitals of North Midlands NHS Trust in the UK between December 2024 and November 2025, who applied it to data collected from 57 eligible ARF patients.

RESULTS

The AI tool provided accurate and robust prediction of NIV outcomes and consistently outperformed conventional clinical indices across all validation settings. In internal repeated cross-validation, external validation, and in-hospital testing, the tool achieved AUCs of 0.793, 0.772, and 0.858, vs. 0.717, 0.709, and 0.693 for the best clinical index (Updated HACOR score), and balanced accuracies of 78.9%, 74.5%, and 85.0%, vs. 68.7%, 63.7%, and 67.6% for the best clinical index (HACOR or Updated HACOR score), respectively.

CONCLUSIONS

This study demonstrates superior predictive performance, compared to current clinical indices, of an AI-based tool for NIV outcome prediction on a cohort of patients with overt-acute and acute-on-chronic respiratory failure. Clinical useability of the tool was confirmed via testing by clinicians in a hospital setting, motivating its future evaluation in prospective multi-centre studies.

Другие публикации по теме

Noninvasive VentilationRespiratory InsufficiencyPredictive Learning ModelsItaly
Для цитирования: Yu Hang, Saffaran Sina, Ali Abdisamad, Henry Catherine, Mustfa Naveed, Thomas Ajit, Rajhan Ashwin, Isrhad Sannaan, Weaver Liam, Tonelli Roberto, Menga Luca S, Zhang Qingchen, Samadi Moein Einollahzadeh, Schuppert Andreas, Laffey John G, Camporota Luigi, Esquinas Antonio M, Grieco Domenico L, Antonelli Massimo, de Lima Lucas Martins, Kawano-Dourado Letícia, Maia Israel S, Cavalcanti Alexandre Biasi, Clini Enrico, Scott Timothy E, Bates Declan G. In-hospital testing of NIVPredict - an AI tool for early prediction of non-invasive ventilation outcome in acute respiratory failure.. Critical care (London, England). 2026. DOI: 10.1186/s13054-026-05894-1.

Перевод полного текста: Перевод в очереди

Полный текст источника

https://creativecommons.org/licenses/by/4.0/ Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ .

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

Introduction

Patients with acute respiratory failure (ARF) who fail non-invasive ventilation (NIV) and subsequently require treatment escalation have a higher risk of death [ 1 – 4 ]. No formal guidelines are currently available to assist clinicians in the early identification of patients at higher risk of NIV failure [ 4 ]. Once NIV is initiated, several clinical scores and physiological indices have been proposed to help clinicians predict NIV outcome [ 5 ], but significant uncertainty exists regarding their optimal cut-off values and their discriminative power across different datasets or disease aetiologies [ 6 ]. In both the widely cited HACOR and Updated HACOR score validation studies [ 7 , 8 ], and in a recent study using the ROX index [ 9 ], important patient subgroups were excluded, i.e. patients with hypercapnic respiratory failure due to chronic obstructive pulmonary disease (COPD) exacerbation or obesity hypoventilation syndrome (OHS), or those who received NIV after failure of high-flow oxygen therapy. These exclusions reduce the applicability of these indices to routine clinical practice in both ward and ICU settings where such conditions are common. Hypoxemic and hypercapnic respiratory failure are distinct entities with different pathophysiology and timing of treatment, and thus it is challenging to develop accurate predictive models that can be applied in both scenarios – a recent study applying the ROX index to data from ARF patients of mixed aetiology produced disappointing results, with the authors concluding that it “cannot currently be recommended for clinical decision support” [ 10 ]. Recently, machine learning (ML) models have shown promise to provide more accurate and generalizable predictions of NIV outcome [ 11 ], but these models have also only included patients with de novo acute hypoxemic respiratory failure, and their clinical useability in a hospital environment has not yet been established.

In this study, we developed NIVPredict , an easy-to-use web-based AI tool, to support clinicians in predicting NIV outcomes across a broad and diverse patient cohort. Model development and reporting followed TRIPOD-AI standards to ensure transparency and reproducibility. We assessed the tool’s accuracy using multiple datasets from different centres and through direct testing by clinicians in a hospital setting (Fig. 1 ).

Fig. 1 Overview of the AI-driven workflow for NIV outcome prediction and clinical deployment. Panel A illustrates the multicentre, retrospective data collection and harmonization across multiple international sources, followed by inclusion/exclusion screening. Panel B defines the clinical outcome: NIV failure was defined as endotracheal intubation or death within 7 days after NIV initiation. Input features included baseline measurements within 6 h prior to NIV initiation (T0) and measurements at 1–2 h after NIV initiation (T1). For baseline measurements, when multiple values were available, the one recorded closest to the time of NIV initiation was selected. Missing data were handled through feed-forward processing, and k-nearest neighbour (KNN) imputation strategies. Panel C presents the model development phase. Feature selection was conducted on the internal training cohort, and a pretrained TabPFN foundation model was applied using an in-context learning approach. Instead of model retraining, the model leverages synthetic prior knowledge to directly generate predictions based on the encoded inputs. The model performance is evaluated across internal cross-validation and external validation cohorts, using metrics including ROC AUC, net benefit analysis, and calibration curves. When deployed to real-world clinical environment, the NIVPredict tool was integrated into a local application using a secure ngrok API and deployed in a hospital setting for testing

Иллюстрация — в первоисточнике ↗

Fig. 1 Overview of the AI-driven workflow for NIV outcome prediction and clinical deployment. Panel A illustrates the multicentre, retrospective data collection and harmonization across multiple international sources, followed by inclusion/exclusion screening. Panel B defines the clinical outcome: NIV failure was defined as endotracheal intubation or death within 7 days after NIV initiation. Input features included baseline measurements within 6 h prior to NIV initiation (T0) and measurements at 1–2 h after NIV initiation (T1). For baseline measurements, when multiple values were available, the one recorded closest to the time of NIV initiation was selected. Missing data were handled through feed-forward processing, and k-nearest neighbour (KNN) imputation strategies. Panel C presents the model development phase. Feature selection was conducted on the internal training cohort, and a pretrained TabPFN foundation model was applied using an in-context learning approach. Instead of model retraining, the model leverages synthetic prior knowledge to directly generate predictions based on the encoded inputs. The model performance is evaluated across internal cross-validation and external validation cohorts, using metrics including ROC AUC, net benefit analysis, and calibration curves. When deployed to real-world clinical environment, the NIVPredict tool was integrated into a local application using a secure ngrok API and deployed in a hospital setting for testing

Methods

Patient data

This was a multicentre, retrospective analysis of prospectively collected data including an in-hospital testing component, conducted across 38 hospitals in four countries (United Kingdom, Italy, Spain, and Brazil), supplemented by data in the publicly available MIMIC-IV dataset from the United States. The study protocol was reviewed and approved by the relevant institutional ethics and research committees at all participating sites. The primary data used for model training via in-context learning and internal cross-validation was taken from the RENOVATE trial [ 12 ], which comprises 665 patients (411 successes vs. 254 failures) with ARF who received NIV. The ARF aetiologies in this training set included hypoxemia in both non-immunocompromised and immunocompromised patients, hypoxemic COVID-19, and respiratory acidosis due to acute exacerbations of COPD. Patients diagnosed with cardiogenic, neuromuscular, or traumatic ARF, or interstitial lung disease, were excluded.

For the purposes of external validation, we used a dataset comprising 422 patients (247 successes vs. 175 failures) with ARF who received NIV, compiled from data from previously published studies carried out in Italy and Spain [ 13 – 17 ] as well as from the publicly available MIMIC-IV database from the Beth Israel Deaconess Medical Centre in the United States [ 18 ]. The European subset ( N = 283, 161 successes vs. 122 failures) consisted primarily of acute respiratory distress syndrome (ARDS) and hypoxemic failure secondary to pneumonia, sepsis, and COVID-19, while the US subset ( N = 139, 86 successes vs. 53 failures) comprised a broader diagnostic mix including COPD, sepsis, pneumonia, and OHS (Additional File: Figure S1 and Table S2).

In-hospital testing of the NIVPredict tool was conducted at the University Hospital of North Midlands NHS Trust (UNHM, UK) between December 2024 and November 2025. The evaluation included 57 patients with ARF receiving NIV in both ward and ICU settings (42 NIV successes vs. 15 NIV failures). The aetiological profile of this cohort included COPD, community-acquired pneumonia (CAP), sepsis, and OHS.

Across all cohorts, physiological measurements were collected at two predefined time points: T0 (baseline values obtained within 6 h prior to NIV initiation) and T1 (values recorded 1–2 h following the start of NIV therapy). NIV failure in all studies was defined by the need for endotracheal intubation or death within 7 days of NIV initiation.

Machine learning model

NIVPredict uses the recently proposed Tabular Prior-data Fitted Network (TabPFN) ML model [ 19 ]. The software implementing this model is open-source and freely available. In contrast to many ML algorithms that require the availability of very large datasets, TabPFN has been specifically developed for the kind of small-to-medium-sized datasets which are commonly generated in studies in critical care. This new tabular learning method uses in-context learning, the mechanism underlying the unprecedented performance of large language models, and has been shown to significantly out-perform state-of-the-art ML models on small datasets. TabPFN can make predictions without retraining or tuning, even on small or unfamiliar datasets by leveraging knowledge it learned from thousands of synthetic tasks during pretraining. This reduces computational burden and thus eases in-hospital implementation. It also helps reduce overfitting and increases generalizability, thus improving performance on external (unseen) datasets, a critical requirement for any clinical decision support tool. See (Additional File: Methods) for full details of the TabPFN model, including how it was applied in this study.

Statistical analysis and feature selection

A detailed statistical analysis for each cohort is included in Additional File: Table S1. Feature selection was performed using a genetic algorithm combined with 10-fold cross-validation to automatically identify the most informative features for the machine learning model. These selected features included PaO 2 /FiO 2 (T1), RR (T1), SAPSII (T0), ΔpH, ΔFiO 2 , PaO 2 /FiO 2 (T0), PEEP, ΔPaO 2 /FiO 2 , ΔPaCO 2 , PEEP + PSV, ΔRR, COPD_diagnosis, and ICU vs. Ward status. Notably, the model emphasized both static measurements and temporal trajectories in patient status, with some of the most predictive variables being PaO₂/FiO₂ (T1), RR (T1), PaO₂/FiO₂ (T0), ΔpH, and ΔFiO₂. The temporal features capture physiological responses to NIV within the first two hours of treatment, enabling a dynamic assessment that static, single time-point clinical indices usually ignore.

In-hospital web interface

A web-based tool, NIVPredict , based on the TabPFN model, was developed to enable in-hospital testing by clinicians in a secure data environment. When deployed for in-hospital testing, the NIVPredict tool was conditioned only on the internal training dataset. The tool was implemented via Ngrok to allow secure remote access and deployed as a browser-accessible application on local hospital devices. Only the measurements listed on the tool’s graphical user interface, shown in Fig. 2 , are required to be entered by the clinician. The confidence score displayed beneath the resulting prediction reflects the probability assigned to the predicted outcome by the TabPFN model. To ensure probabilistic reliability, output probabilities were post-hoc calibrated using Beta calibration [ 20 ], based on an independent external validation set.

Fig. 2 Graphical User Interface of the NIVPredict Tool. The interface allows clinicians to enter anonymized patient information, comorbidity status (e.g., COPD), and ICU admission. Baseline measurements within 6 h before NIV initiation and early physiological responses within 1–2 h after initiation are input as model features. NIV settings (IPAP, EPAP, PSV) are also recorded. After data entry, the embedded AI tool generates an immediate prediction of NIV success or failure with a confidence score, enabling rapid clinical decision support at the point of care. No clinical measurements are stored after a prediction is made. Data transmission and storage are handled securely on the local host

Иллюстрация — в первоисточнике ↗

Fig. 2 Graphical User Interface of the NIVPredict Tool. The interface allows clinicians to enter anonymized patient information, comorbidity status (e.g., COPD), and ICU admission. Baseline measurements within 6 h before NIV initiation and early physiological responses within 1–2 h after initiation are input as model features. NIV settings (IPAP, EPAP, PSV) are also recorded. After data entry, the embedded AI tool generates an immediate prediction of NIV success or failure with a confidence score, enabling rapid clinical decision support at the point of care. No clinical measurements are stored after a prediction is made. Data transmission and storage are handled securely on the local host

Results

Internal validation

In repeated 5-fold cross-validation on the training dataset, the NIVPredict tool achieved a predictive accuracy of 78.2%, sensitivity of 76.8%, specificity of 78.2%, and an AUC of 0.793 (Table 1). The best-performing clinical index in the internal validation was the Updated HACOR score [ 8 ] evaluated at timepoint T1, which achieved an accuracy of 68.4%, sensitivity of 69.2%, specificity of 67.4% and an AUC of 0.717.

External validation

On the multi-centre external dataset, NIVPredict attained an accuracy of 74.2%, sensitivity of 76.0%, specificity of 72.9%, and an AUC of 0.772 (Table 1 ). Decision curve analysis showed that treatment escalation decisions guided by NIVPredict provided a greater net benefit than default strategies, such as treating all patients or none, across a wide range of decision thresholds (20% to 70%) (Additional File: Figure S2b). Calibration curves for NIVPredict , (Additional File: S2c), closely followed the diagonal reference line, with a Brier score of 0.176 in external validation, indicating strong agreement between prediction confidence and the probability of the prediction being correct. In contrast, clinical indices including HACOR at T1 and SAPS II showed lower predictive performance in external validation, with accuracies of 60.7% and 63.7%, and AUCs of 0.692 and 0.667, respectively. When the HACOR threshold of > 5 originally proposed in [ 7 ] was used at T1, performance declined further (Table 1 ). Table 1 Comparative performance of NIVPredict and conventional clinical indices Model Accuracy Balanced accuracy Sensitivity (Recall) Specificity PPV (Precision) NPV AUC Internal validation NIVPredict 78.2% 78.9% 76.8% 78.2% 76.5% 79.4% 0.793 HACOR (T0) 59.8% 60.8% 66.2% 55.7% 49.6% 72.3% 0.616 HACOR (T1) 66.5% 67.1% 71.3% 62.5% 55.4% 77.5% 0.697 U-HACOR (T0) 57.7% 60.2% 69.8% 50.3% 47.3% 72.8% 0.634 U-HACOR (T1) 68.4% 68.7% 69.2% 67.4% 57.5% 77.2% 0.717 ROX (T0) 57.2% 59.0% 67.4% 50.7% 46.8% 71.0% 0.612 ROX (T1) 62.7% 64.2% 71.3% 57.1% 52.1% 75.8% 0.691 SOFA 55.2% 54.4% 50.7% 59.1% 44.7% 65.5% 0.591 SAPSII 54.9% 53.2% 45.6% 60.1% 43.7% 63.1% 0.568 External validation NIVPredict 74.2% 74.5% 76.0% 72.9% 70.7% 76.5% 0.772 HACOR (T0) > 4 45.0% 50.6% 83.4% 17.8% 52.0% 31.2% 0.613 HACOR (T1) > 4 60.7% 63.7% 81.7% 45.7% 71.5% 56.5% 0.692 ROX (T0) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:^\dagger$$\end{document} < 7 50.4% 53.9% 47.2% 60.5% 69.4% 49.1% 0.597 ROX (T1) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:^\dagger$$\end{document} < 7 59.7% 62.7% 66.0% 59.3% 61.4% 62.2% 0.674 SAPSII > 40 63.7% 61.8% 50.3% 73.3% 60.3% 65.6% 0.667 NIVPredict * 76.2% 76.3% 77.3% 75.2% 74.5% 78.0% 0.781 U-HACOR * (T0) > 10 55.8% 56.3% 86.3% 26.3% 66.3% 37.1% 0.640 U-HACOR * (T1) > 10.5 63.2% 63.1% 59.8% 66.4% 77.5% 54.5% 0.709 SOFA * > 4 61.3% 61.1% 49.2% 73.0% 70.7% 56.5% 0.643 In-hospital testing NIVPredict 84.2% 85.0% 86.7% 83.3% 65.0% 94.6% 0.858 HACOR (T0) > 4 42.1% 45.7% 53.3% 38.1% 23.5% 69.6% 0.487 HACOR (T1) > 4 64.9% 67.6% 73.3% 61.9% 40.7% 86.7% 0.685 U-HACOR (T0) > 10 47.4% 60.0% 86.7% 33.3% 31.7% 87.5% 0.518 U-HACOR (T1) > 10.5 57.9% 65.0% 80.0% 50.0% 36.4% 87.5% 0.693 ROX (T0) < 7 54.4% 52.9% 53.3% 52.4% 29.6% 76.6% 0.536 ROX (T1) < 7 63.2% 64.3% 66.7% 61.9% 40.0% 81.3% 0.679 SOFA > 4 75.4% 64.0% 40.0% 88.1% 54.5% 80.4% 0.685 SAPSII > 40 73.7% 58.6% 26.7% 90.5% 50.0% 77.6% 0.717 PPV: Positive Predictive Value, NPV: Negative Predictive Value, AUC: Area Under the Receiver Operating Characteristic Curve. To ensure a fair and comprehensive evaluation, clinical indices were assessed for external and in-hospital validation using thresholds derived from the training dataset using Youden’s J statistic * Indicates a subset of the original external validation cohort, limited to 269 patients (NIV success: 137; NIV failure: 132) due to missing SOFA score values required for calculating the Updated HACOR score. For details of the optimal thresholds and corresponding performance of each clinical index in each validation cohort, as well as cutoffs reported in the original studies, see Additional File: Table S5, S6 † indicates a subset of the original external dataset, as only MIMIC-IV includes SpO₂ measurements required for calculating the ROX index

Table 1
Comparative performance of NIVPredict and conventional clinical indices
PPV: Positive Predictive Value, NPV: Negative Predictive Value, AUC: Area Under the Receiver Operating Characteristic Curve. To ensure a fair and comprehensive evaluation, clinical indices were assessed for external and in-hospital validation using thresholds derived from the training dataset using Youden’s J statistic * Indicates a subset of the original external validation cohort, limited to 269 patients (NIV success: 137; NIV failure: 132) due to missing SOFA score values required for calculating the Updated HACOR score. For details of the optimal thresholds and corresponding performance of each clinical index in each validation cohort, as well as cutoffs reported in the original studies, see Additional File: Table S5, S6 † indicates a subset of the original external dataset, as only MIMIC-IV includes SpO₂ measurements required for calculating the ROX index

ModelAccuracyBalanced accuracySensitivity (Recall)SpecificityPPV (Precision)NPVAUC
Internal validation
NIVPredict78.2%78.9%76.8%78.2%76.5%79.4%0.793
HACOR (T0)59.8%60.8%66.2%55.7%49.6%72.3%0.616
HACOR (T1)66.5%67.1%71.3%62.5%55.4%77.5%0.697
U-HACOR (T0)57.7%60.2%69.8%50.3%47.3%72.8%0.634
U-HACOR (T1)68.4%68.7%69.2%67.4%57.5%77.2%0.717
ROX (T0)57.2%59.0%67.4%50.7%46.8%71.0%0.612
ROX (T1)62.7%64.2%71.3%57.1%52.1%75.8%0.691
SOFA55.2%54.4%50.7%59.1%44.7%65.5%0.591
SAPSII54.9%53.2%45.6%60.1%43.7%63.1%0.568
External validation
NIVPredict74.2%74.5%76.0%72.9%70.7%76.5%0.772
HACOR (T0) > 445.0%50.6%83.4%17.8%52.0%31.2%0.613
HACOR (T1) > 460.7%63.7%81.7%45.7%71.5%56.5%0.692
ROX (T0) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:^\dagger$$\end{document} < 750.4%53.9%47.2%60.5%69.4%49.1%0.597
ROX (T1) \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:^\dagger$$\end{document} < 759.7%62.7%66.0%59.3%61.4%62.2%0.674
SAPSII > 4063.7%61.8%50.3%73.3%60.3%65.6%0.667
NIVPredict *76.2%76.3%77.3%75.2%74.5%78.0%0.781
U-HACOR * (T0) > 1055.8%56.3%86.3%26.3%66.3%37.1%0.640
U-HACOR * (T1) > 10.563.2%63.1%59.8%66.4%77.5%54.5%0.709
SOFA * > 461.3%61.1%49.2%73.0%70.7%56.5%0.643
In-hospital testing
NIVPredict84.2%85.0%86.7%83.3%65.0%94.6%0.858
HACOR (T0) > 442.1%45.7%53.3%38.1%23.5%69.6%0.487
HACOR (T1) > 464.9%67.6%73.3%61.9%40.7%86.7%0.685
U-HACOR (T0) > 1047.4%60.0%86.7%33.3%31.7%87.5%0.518
U-HACOR (T1) > 10.557.9%65.0%80.0%50.0%36.4%87.5%0.693
ROX (T0) < 754.4%52.9%53.3%52.4%29.6%76.6%0.536
ROX (T1) < 763.2%64.3%66.7%61.9%40.0%81.3%0.679
SOFA > 475.4%64.0%40.0%88.1%54.5%80.4%0.685
SAPSII > 4073.7%58.6%26.7%90.5%50.0%77.6%0.717

In the subset of the external dataset where the Updated HACOR score could be calculated, the NIVPredict continued to demonstrate better performance, achieving an accuracy of 76.2% and an AUC of 0.781. While the Updated HACOR score at T1 showed improved performance in this subset, with an accuracy of 63.2% and an AUC of 0.709, its predictive performance remained inferior to NIVPredict . Applying the cutoff of > 7 proposed for the Updated HACOR score at timepoint T1 [ 8 ] reduced predictive accuracy further (Additional File: Figure S2).

In-hospital testing

During on-site testing by clinicians at UHNM the NIVPredict tool achieved an accuracy of 84.2%, sensitivity of 86.7%, specificity of 83.3%, and an AUC of 0.858. Model calibration was also excellent, with a Brier score of 0.093 (Additional File: Figure S3c). Decision curve analysis showed a greater net benefit across a wider range of decision thresholds (10% to 65%) than for current clinical indices (Additional File: Figure S3b). Restricting predictions to cases where the tool’s confidence score exceeded 60% ( N = 51/57), increased the tool’s accuracy to 90.2%, sensitivity to 84.6%, specificity to 92.1%, and AUC to 0.859.

In testing at UHNM, where patients were primarily suffering from COPD or OHS, there was a substantial decline in the predictive performance of both the HACOR and Updated HACOR scores (balanced accuracies of 67.6% and 65.0%, and AUCs of 0.685 and 0.693, respectively).

All results given above, broken down according to whether patients had hypoxemic or hypercapnic acute respiratory failure, are included in the Additional File: Tables S7. As shown, superior predictive performance of NIVPredict is preserved in both cohorts in all settings. As demonstrated by the separate SHAP analysis for each patient group in the Additional File (Figure S5), the model effectively captures the distinct pathophysiological drivers of NIV failure across different phenotypes. For example, in the hypercapnic cohort, the model assigns significantly greater predictive weight to variables representing ventilatory demand and acid-base status (RR and temporal changes in PaCO₂ and pH), compared to the hypoxemic cohort.

Discussion

This study presents a novel web-based tool for predicting the outcome of NIV in patients with ARF of diverse aetiologies within the first two hours of treatment. The tool requires only a small number of routinely collected patient measurements to be input via an easy-to-use graphical user interface and can be run as a web application on a smartphone, tablet or laptop. The tool was evaluated using multi-centre retrospective datasets and consistently achieved a level of predictive performance that significantly exceeded that of current clinical scores and indices. In contrast to previous studies that considered only patients with de novo acute hypoxemic respiratory failure [ 11 ], this new model leverages additional data on 95 patients with hypercapnic respiratory failure due to COPD exacerbation or OHS from the RENOVATE RCT [ 12 ] and the MIMIC-IV database [ 18 ]. This allowed the development of a more generalizable tool with increased clinical relevance, whose useability by clinicians in a hospital setting could be evaluated for the first time via in-situ testing. Predictions made by the tool can translate into clinical action in two ways. High confidence predictions of NIV success can provide increased confidence that non-invasive support is working and help avoid unnecessary escalation of treatment with attendant risks to the patient and costs to healthcare providers. Conversely, high confidence predictions of NIV failure can prompt clinicians to monitor a patient more closely, reassess current treatment (e.g. adjust pressure settings) or begin planning for treatment escalation. To maximise transparency, no specific risk thresholds are proposed – clinicians should decide for themselves what level of confidence they require from the tool in order to use it to inform their treatment decisions, e.g. to minimize the probability of an incorrect prediction a clinician could decide to disregard any predictions with a confidence level less than 70%.

Our results suggest that the limitations of current clinical scores are not merely due to centre-specific threshold variations, but stem from the inherent lack of discriminative power of static, rule-based indices. Many of these indices are applied at a single time point, ignoring the physiologic trajectory of patient’s responses to NIV that may hold greater prognostic value. Temporal changes such as ΔpH, ΔFiO₂, and ΔPaO₂/FiO₂ which were among the most informative features used by the tool’s TabPFN model (Additional File: Figure S4), reflect the patient’s physiological responses to NIV initiation in a manner not captured by static data-points [ 3 ]. This aligns with clinical observations that NIV patients who show improvement in gas exchange and work of breathing tend to have better outcomes [ 21 ]. In addition, traditional clinical indices often derive their thresholds retrospectively and usually report only internal validation metrics, limiting their external generalizability and clinical applicability. However, some clinical indices such as HACOR have been developed specifically for patients with de novo hypoxemic respiratory failure, and thus their relatively poor performance in this study when applied to datasets from patients with diverse aetiologies (e.g. MIMIC-IV) should be interpreted cautiously as it may be due to population mismatch.

This study has some limitations. Tidal volume, which has been shown to be a predictor of NIV outcome [ 22 , 23 ], was not included in the measurements input to NIVPredict as it was not available in a number of the datasets used for external validation. SAPSII was used as an input to the tool rather than the more easily computed SOFA score for the same reason. A patient’s level of consciousness, degree of cooperation, and fluid balance or volume status are important factors that can impact bedside decision making and success or failure of NIV. In particular, fluid overload may adversely affect gas exchange and respiratory mechanics, especially in patients with cardiac dysfunction or sepsis. Partial information on some of these domains is incorporated into the model through the use of the SAPS II score, which includes variables such as the Glasgow Coma Scale (as a measure of level of consciousness) and urine output. However, while urine output may act as a crude proxy for renal function and volume status, we acknowledge that this does not fully capture fluid balance, nor does it substitute for more granular assessments of volume status (e.g. cumulative fluid balance, echocardiographic parameters, or bioimpedance measures). Unfortunately, more detailed and standardised data on fluid balance or degree of patient cooperation were not available in the datasets used for internal training and external validation of the NIVPredict tool, and therefore could not be incorporated into the model. Moreover, several of these variables—particularly cooperation and bedside assessment of volume status—are inherently difficult to quantify in a reproducible manner across different clinicians and healthcare settings. Importantly, NIVPredict is intended as a decision-support tool rather than a replacement for clinical judgement. The absence of more granular fluid balance data should not alter the validity of the model or the conclusions drawn, as these factors would be routinely assessed and integrated by clinicians at the bedside alongside the information provided by the tool.

Given that NIV failure trajectories can differ between hypoxemic and hypercapnic patients, the use of phenotype specific assessment intervals beyond the 1–2 h window used here could also be clinically useful and could be incorporated in future versions of the model. Because the hypoxemic group represents a larger proportion of the current training set, the global feature selection process may have been disproportionately influenced by predictors of Type 1 ARF - this cohort imbalance may explain why certain static indicators such as baseline and post 1–2 h PaCO₂ or pH that are likely to be important in hypercapnic patients were not prioritized in the final feature set. Future studies using datasets that incorporate additional factors and allow for more balanced aetiology-specific feature selection processes could allow the model to be re-trained in order to further improve both its predictive accuracy and clinical useability in different populations of ARF patients.

Feasibility/useability assessment was performed via in-hospital testing that took place over one year in a single centre, resulting in a relatively small sample size ( N = 57). It was observed that the tool achieved higher performance in this test set compared to both internal and external validation cohorts, however this needs to be interpreted with caution as model performance naturally varies with the characteristics of each validation cohort - case mix, disease severity, NIV indications, and local practice (e.g. thresholds for intubation) can all influence model discrimination and calibration. In the external validation cohorts considered here most patients receiving NIV were being managed in the ICU, where NIV is often used in patients at the borderline for intubation. These cases typically involve complex, rapidly evolving conditions, making NIV outcome more difficult to anticipate. In contrast, the in-hospital cohort at UHNM primarily included patients initiated on NIV in the ward setting, where patient selection is more conservative and baseline risk for NIV failure is generally lower. At UHNM, patients with greater clinical uncertainty or who are judged to be at higher risk of deterioration are often intubated directly without a trial of NIV. Hence, there were only a small number of ICU patients in the in-hospital testing cohort (14/57) – these ICU patients generally had a much higher probability of NIV failure and the outcomes in the small cohort are more challenging to predict (Additional File: Table S1). The other main limitation of the study is that it is based on retrospective data. Having established the useability of the tool in a clinical setting, its predictive performance now needs to be fully confirmed in multi-centre prospective studies.

Finally, we emphasise that the proposed tool is designed to be assistive, not prescriptive. Decisions around treatment escalation during NIV are inherently complex and will often be informed by additional considerations that cannot be captured by any set of numbers. In accordance with emerging regulatory frameworks for decision-support systems in healthcare, clinical judgement should always remain the primary arbiter of treatment decisions.

Conclusions

Using only commonly available measurements taken before initiation and within the first two hours of treatment, the NIVPredict tool demonstrated accurate and robust prediction of NIV outcomes in patients with ARF of diverse aetiology, and significantly outperformed the predictive accuracy of currently available threshold-based clinical scores and indices. Practical useability of the tool was confirmed via in-hospital testing by clinicians. These results support the need for future prospective multicentre studies to determine the potential for NIVPredict to enhance clinical decision making and improve patient outcomes.

Supplementary Information

Supplementary Material 1.

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Acknowledgements

Not Applicable.

Author contributions

HY, SS, TES, and DGB contributed to the conceptualization of the study. HY performed the formal analysis, developed the methodology, implemented the software, and wrote the original draft. SS contributed to methodology development and writing – review & editing. AA, CH, NM, AT, AR, SI, LW, RT, LSMe, QZ, MES, AS, LML, LK-D, IM, ABC, and EC contributed to data curation and writing – review & editing. JGL, LC, AME, DLG, and MA contributed to methodology and writing – review & editing. DGB provided supervision and contributed to writing – original draft. All authors reviewed and approved the final manuscript.

Funding

This work was supported by the UKRI Engineering and Physical Sciences Research Council (Ref. EP/W000490/1) and The Royal Academy of Engineering (Ref. RF2122-21–258).

Data availability

Patient data is available on request from the authors. The *NIVPredict* tool is available for testing as a web-based application - colleagues who would like to evaluate its performance on their own datasets are encouraged to contact Prof. Bates ([d.bates@warwick.ac.uk]).

Declarations

Ethics approval and consent to participate

Not Applicable.

Consent for publication

Not Applicable.

Competing interests

The authors declare no competing interests.

Abbreviations

Non-invasive ventilation

Machine learning

Acute respiratory failure

Intensive care unit

Chronic obstructive pulmonary disease

Obesity hypoventilation syndrome

Community-acquired pneumonia

Acute respiratory distress syndrome

Shapely additive explanation

Respiratory rate

The ratio of partial pressure of oxygen in arterial blood to the fraction of inspiratory oxygen concentration

University hospital of north midlands NHS Trust

References

1. Grieco DL Maggiore SM Roca O Non-invasive ventilatory support and high-flow nasal oxygen as first-line treatment of acute hypoxemic respiratory failure and ARDS Intensive Care Med 2021 47 851 66 10.1007/s00134-021-06459-2 34232336 PMC8261815 Grieco DL, Maggiore SM, Roca O, et al. Non-invasive ventilatory support and high-flow nasal oxygen as first-line treatment of acute hypoxemic respiratory failure and ARDS. Intensive Care Med. 2021;47:851–66. 34232336 10.1007/s00134-021-06459-2 PMC8261815

2. Ferreyro BL Angriman F Munshi L Association of noninvasive oxygenation strategies with all-cause mortality in adults with acute hypoxemic respiratory failure: a systematic review and meta-analysis JAMA 2020 324 1 57 67 10.1001/jama.2020.9524 32496521 PMC7273316 Ferreyro BL, Angriman F, Munshi L, et al. Association of noninvasive oxygenation strategies with all-cause mortality in adults with acute hypoxemic respiratory failure: a systematic review and meta-analysis. JAMA. 2020;324(1):57–67. 32496521 10.1001/jama.2020.9524 PMC7273316

3. Bellani G Laffey JG Pham T Noninvasive ventilation of patients with acute respiratory distress syndrome. Insights from the LUNG SAFE study Am J Respir Crit Care Med 2016 195 1 67 77 10.1164/rccm.201606-1306OC 27753501 Bellani G, Laffey JG, Pham T, et al. Noninvasive ventilation of patients with acute respiratory distress syndrome. Insights from the LUNG SAFE study. Am J Respir Crit Care Med. 2016;195(1):67–77. 10.1164/rccm.201606-1306OC 27753501

4. Grasselli G Calfee CS Camporota L ESICM guidelines on acute respiratory distress syndrome: definition, phenotyping and respiratory support strategies Intensive Care Med 2023 49 7 727 59 10.1007/s00134-023-07050-7 37326646 PMC10354163 Grasselli G, Calfee CS, Camporota L, et al. ESICM guidelines on acute respiratory distress syndrome: definition, phenotyping and respiratory support strategies. Intensive Care Med. 2023;49(7):727–59. 37326646 10.1007/s00134-023-07050-7 PMC10354163

5. Lee KG Roca O Casey JD When to intubate in acute hypoxaemic respiratory failure? Options and opportunities for evidence-informed decision making in the intensive care unit Lancet Respir Med 2024 10.1016/S2213-2600(24)00118-8 38801827 Lee KG, Roca O, Casey JD, et al. When to intubate in acute hypoxaemic respiratory failure? Options and opportunities for evidence-informed decision making in the intensive care unit. Lancet Respir Med. 2024. 10.1016/S2213-2600(24)00118-8. 38801827 10.1016/S2213-2600(24)00118-8

6. Yarnell CJ Johnson A Dam T Do thresholds for invasive ventilation in hypoxemic respiratory failure exist? A cohort study Am J Respir Crit Care Med 2023 207 3 271 82 10.1164/rccm.202206-1092OC 36150166 Yarnell CJ, Johnson A, Dam T, et al. Do thresholds for invasive ventilation in hypoxemic respiratory failure exist? A cohort study. Am J Respir Crit Care Med. 2023;207(3):271–82. 36150166 10.1164/rccm.202206-1092OC

7. Duan J Han X Bai L Zhou L Huang S Assessment of heart rate, acidosis, consciousness, oxygenation, and respiratory rate to predict noninvasive ventilation failure in hypoxemic patients Intensive Care Med 2017 43 2 192 9 10.1007/s00134-016-4601-3 27812731 Duan J, Han X, Bai L, Zhou L, Huang S. Assessment of heart rate, acidosis, consciousness, oxygenation, and respiratory rate to predict noninvasive ventilation failure in hypoxemic patients. Intensive Care Med. 2017;43(2):192–9. 10.1007/s00134-016-4601-3. 27812731 10.1007/s00134-016-4601-3

8. Duan J Chen L Liu X An updated HACOR score for predicting the failure of noninvasive ventilation: a multicenter prospective observational study Crit Care 2022 26 196 10.1186/s13054-022-04060-7 35786223 PMC9250742 Duan J, Chen L, Liu X, et al. An updated HACOR score for predicting the failure of noninvasive ventilation: a multicenter prospective observational study. Crit Care. 2022;26:196. 10.1186/s13054-022-04060-7. 35786223 10.1186/s13054-022-04060-7 PMC9250742

9. Duan J Yang J Jiang L Prediction of noninvasive ventilation failure using the ROX index in patients with de Novo acute respiratory failure Ann Intensive Care 2022 12 110 10.1186/s13613-022-01085-7 36469159 PMC9723095 Duan J, Yang J, Jiang L, et al. Prediction of noninvasive ventilation failure using the ROX index in patients with de Novo acute respiratory failure. Ann Intensive Care. 2022;12:110. 10.1186/s13613-022-01085-7. 36469159 10.1186/s13613-022-01085-7 PMC9723095

10. Lijović L Radočaj T Kovač N Vučić M Elbers P Predictive performance of ROX index and its variations for NIV failure Med Intensiva (Engl Ed) 2025 49 7 502136 10.1016/j.medine.2025.502136 39809650 Lijović L, Radočaj T, Kovač N, Vučić M, Elbers P. Predictive performance of ROX index and its variations for NIV failure. Med Intensiva (Engl Ed). 2025;49(7):502136. 10.1016/j.medine.2025.502136. Epub 2025 Jan 13. PMID: 39809650. 39809650 10.1016/j.medine.2025.502136

11. Yu H Saffaran S Maia IS Early prediction of non-invasive ventilation outcome using the TabPFN machine learning model: a multi-centre validation study Intensive Care Med 2023 51 1542 4 10.1007/s00134-025-08025-6 40637771 Yu H, Saffaran S, Maia IS, et al. Early prediction of non-invasive ventilation outcome using the TabPFN machine learning model: a multi-centre validation study. Intensive Care Med. 2023;51:1542–4. 10.1007/s00134-025-08025-6 40637771

12. RENOVATE Investigators and the BRICNet Authors. High-flow nasal oxygen vs noninvasive ventilation in patients with acute respiratory failure: the RENOVATE randomized clinical trial. JAMA. 202 5 ,333(10):875-890. 10.1001/jama.2024.26244 PMC11897836 39657981

13. Tonelli R Fantini R Tabbì L Early inspiratory effort assessment by esophageal manometry predicts non-invasive ventilation outcome in de Novo respiratory failure: a pilot study Am J Respir Crit Care Med 2020 202 4 558 67 10.1164/rccm.201912-2512OC 32325004 PMC7427381 Tonelli R, Fantini R, Tabbì L, et al. Early inspiratory effort assessment by esophageal manometry predicts non-invasive ventilation outcome in de Novo respiratory failure: a pilot study. Am J Respir Crit Care Med. 2020;202(4):558–67. 32325004 10.1164/rccm.201912-2512OC PMC7427381

14. Tonelli R Busani S Tabbì L Inspiratory effort and lung mechanics in spontaneously breathing patients with acute respiratory failure due to COVID-19: a matched control study Am J Respir Crit Care Med 2021 204 6 725 8 10.1164/rccm.202104-1029LE 34214009 PMC8521698 Tonelli R, Busani S, Tabbì L, et al. Inspiratory effort and lung mechanics in spontaneously breathing patients with acute respiratory failure due to COVID-19: a matched control study. Am J Respir Crit Care Med. 2021;204(6):725–8. 34214009 10.1164/rccm.202104-1029LE PMC8521698

15. Menga LS Cese LD Bongiovanni F High failure rate of noninvasive oxygenation strategies in critically ill subjects with acute hypoxemic respiratory failure due to COVID-19 Respir Care 2021 66 5 705 14 10.4187/respcare.08622 33653913 Menga LS, Cese LD, Bongiovanni F, et al. High failure rate of noninvasive oxygenation strategies in critically ill subjects with acute hypoxemic respiratory failure due to COVID-19. Respir Care. 2021;66(5):705–14. 33653913 10.4187/respcare.08622

16. Grieco DL Menga LS Cesarano M Effect of helmet noninvasive ventilation vs high-flow nasal oxygen on days free of respiratory support in patients with COVID-19 and moderate to severe hypoxemic respiratory failure: the HENIVOT randomized clinical trial JAMA 2021 325 17 1731 43 10.1001/jama.2021.4682 33764378 PMC7995134 Grieco DL, Menga LS, Cesarano M, et al. Effect of helmet noninvasive ventilation vs high-flow nasal oxygen on days free of respiratory support in patients with COVID-19 and moderate to severe hypoxemic respiratory failure: the HENIVOT randomized clinical trial. JAMA. 2021;325(17):1731–43. 33764378 10.1001/jama.2021.4682 PMC7995134

17. Antonelli M Conti G Esquinas A A multiple-centre survey on the use in clinical practice of noninvasive ventilation as a first-line intervention for acute respiratory distress syndrome Crit Care Med 2007 35 1 18 25 10.1097/01.CCM.0000251821.44259.F3 17133177 Antonelli M, Conti G, Esquinas A, et al. A multiple-centre survey on the use in clinical practice of noninvasive ventilation as a first-line intervention for acute respiratory distress syndrome. Crit Care Med. 2007;35(1):18–25. 17133177 10.1097/01.CCM.0000251821.44259.F3

18. Johnson AEW Bulgarelli L Shen L MIMIC-IV, a freely accessible electronic health record dataset Sci Data 2023 10 1 10.1038/s41597-022-01899-x 36596836 PMC9810617 Johnson AEW, Bulgarelli L, Shen L, et al. MIMIC-IV, a freely accessible electronic health record dataset. Sci Data. 2023;10:1. 36596836 10.1038/s41597-022-01899-x PMC9810617

19. Hollmann N Müller S Purucker L Accurate predictions on small data with a tabular foundation model Nature 2025 637 319 26 10.1038/s41586-024-08328-6 39780007 PMC11711098 Hollmann N, Müller S, Purucker L, et al. Accurate predictions on small data with a tabular foundation model. Nature. 2025;637:319–26. 10.1038/s41586-024-08328-6. 39780007 10.1038/s41586-024-08328-6 PMC11711098

20. Kull M Silva Filho T Flach P Beta calibration: a well-founded and easily implemented improvement on logistic calibration for binary classifiers Proc Mach Learn Res 2017 54 623 31 Kull M, Silva Filho T, Flach P. Beta calibration: a well-founded and easily implemented improvement on logistic calibration for binary classifiers. Proc Mach Learn Res. 2017;54:623–31.

21. Confalonieri M Garuti G Cattaruzza MS A chart of failure risk for noninvasive ventilation in patients with COPD exacerbation Eur Respir J 2005 25 2 348 55 10.1183/09031936.05.00085304 15684302 Confalonieri M, Garuti G, Cattaruzza MS, et al. A chart of failure risk for noninvasive ventilation in patients with COPD exacerbation. Eur Respir J. 2005;25(2):348–55. 15684302 10.1183/09031936.05.00085304

22. Carteaux G Millán-Guilarte T De Prost N Failure of noninvasive ventilation for de Novo acute hypoxemic respiratory failure: role of tidal volume Crit Care Med 2016 44 2 282 90 10.1097/CCM.0000000000001379 26584191 Carteaux G, Millán-Guilarte T, De Prost N, et al. Failure of noninvasive ventilation for de Novo acute hypoxemic respiratory failure: role of tidal volume. Crit Care Med. 2016;44(2):282–90. 26584191 10.1097/CCM.0000000000001379

23. Frat JP Ragot S Coudroy R Predictors of intubation in patients with acute hypoxemic respiratory failure treated with a noninvasive oxygenation strategy Crit Care Med 2018 46 2 208 15 10.1097/CCM.0000000000002818 29099420 Frat JP, Ragot S, Coudroy R, et al. Predictors of intubation in patients with acute hypoxemic respiratory failure treated with a noninvasive oxygenation strategy. Crit Care Med. 2018;46(2):208–15. 29099420 10.1097/CCM.0000000000002818

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.