# Prognozowanie ryzyka z dokumentacji pacjenta

EN: **Clinical risk prediction from health records** · id `clinicalprediction` · aliases: clinical prediction models, EHR prediction, risk scores, modele predykcyjne w medycynie, predictive analytics in healthcare

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [AI w medycynie i ochronie zdrowia](https://aiatlasgraph.com/t/healthai.md) › Prognozowanie ryzyka z dokumentacji pacjenta

## Description

- PL: Modele diagnostyczne i prognostyczne na danych z elektronicznej dokumentacji (EHR): wczesne ostrzeganie, ryzyko powikłań, przeżycie i ponowne przyjęcia.
- EN: Diagnostic and prognostic models on electronic health record (EHR) data: early warning, complication risk, survival and readmissions.

## In one sentence

- PL: Modele, które na podstawie danych z karty pacjenta szacują ryzyko, np. pogorszenia, powikłań czy ponownego trafienia do szpitala.
- EN: Models that use data from a patient's record to estimate risks such as deterioration, complications or coming back to hospital.

## Problem it solves

- PL: Groźne pogorszenia zapowiadają często drobne zmiany w wynikach, które w natłoku pracy łatwo przeoczyć aż do kryzysu.
- EN: Dangerous declines are often foreshadowed by small changes in results that are easy to miss on a busy shift until a crisis.

## What it does

- PL: Jak czujnik dymu dla oddziału: stale przegląda wyniki, ciśnienie i leki, i podnosi alarm, gdy ryzyko przekroczy próg.
- EN: Like a smoke detector for a ward: it keeps scanning results, blood pressure and drugs, and sounds an alarm when risk crosses a threshold.

## Everyday example

- PL: Pielęgniarka dostaje powiadomienie, że u pacjenta po operacji rośnie ryzyko zakażenia, i wzywa lekarza kilka godzin wcześniej niż zwykle.
- EN: A nurse gets an alert that a post-surgery patient's infection risk is rising and calls the doctor hours earlier than usual.

## This concerns you if you…

- PL: leżysz w szpitalu lub opiekujesz się kimś w szpitalu
- PL: budujesz modele na danych medycznych
- EN: are in hospital or caring for someone who is
- EN: build models on medical data

## Keywords

EHR · MIMIC-IV · eICU · TRIPOD+AI · calibration curve · decision curve analysis · early warning score · readmission prediction · FHIR

## How it works

- PL: Dane z EHR (wyniki laboratoryjne, parametry życiowe, rozpoznania, leki) zamienia się w cechy w oknach czasowych lub w sekwencje zdarzeń; modelem bywa regresja logistyczna, gradient boosting albo sieć sekwencyjna. Kluczowe są kalibracja, wybór progu alarmu i walidacja zewnętrzna, a raportowanie porządkuje TRIPOD+AI.
- EN: EHR data (labs, vital signs, diagnoses, drugs) become features over time windows or event sequences; the model may be logistic regression, gradient boosting or a sequence network. Calibration, alert-threshold choice and external validation are key, and TRIPOD+AI structures reporting.

## Limits

- PL: Dokumentacja jest niekompletna i odzwierciedla praktykę szpitala (np. komu zlecono badanie), co tworzy wycieki i fałszywe zależności. Zbyt wiele alarmów prowadzi do zmęczenia alarmami. Modele tracą jakość, gdy zmieniają się populacja lub procedury.
- EN: Records are incomplete and reflect hospital practice (e.g. who was tested), creating leakage and spurious associations. Too many alerts lead to alert fatigue. Models degrade when the population or procedures change.

## Key terms

- PL: **kalibracja**: Zgodność podawanego ryzyka z faktyczną częstością zdarzeń.
- PL: **zmęczenie alarmami**: Personel ignoruje powiadomienia, bo jest ich za dużo.
- PL: **model prognostyczny**: Przewiduje przyszłe zdarzenie, np. powikłanie, a nie obecny stan.
- EN: **calibration**: Agreement between predicted risk and how often events actually occur.
- EN: **alert fatigue**: Staff ignore alerts because there are too many.
- EN: **prognostic model**: Predicts a future event, such as a complication, not the current state.

## Know first

- [Regresja liniowa i logistyczna (Linear and logistic regression)](https://aiatlasgraph.com/t/linearmodels.md)
- [Kalibracja pewności modelu (Confidence calibration)](https://aiatlasgraph.com/t/calibration.md)

## Subtopics (4 direct, 4 in total)

- [Modele bazowe na danych z dokumentacji pacjenta (Foundation models for electronic health records)](https://aiatlasgraph.com/t/ehrfoundation.md): Models pretrained on sequences of structured EHR events (codes, medications, lab results) that produce patient representations for many prediction tasks.
- [Szacowanie, komu leczenie pomoże (efekt indywidualny) (Individualised treatment effect estimation)](https://aiatlasgraph.com/t/treatmenteffects.md): Estimating the conditional average treatment effect (CATE) from randomised or observational data with causal machine learning, as a basis for treatment recommendations.
- [Uczenie maszynowe dla czasu do zdarzenia (Machine learning for time-to-event outcomes)](https://aiatlasgraph.com/t/survivalanalysis.md): Models predicting time to an event with censored data, from the Cox model to survival forests and neural networks.
- [Wczesne ostrzeganie o pogorszeniu stanu (np. sepsa) (Early warning systems for clinical deterioration (e.g. sepsis))](https://aiatlasgraph.com/t/earlywarning.md): Models running continuously on EHR data that flag patients at rising risk of sepsis or deterioration and alert staff.

## Related topics

Untyped, symmetric "see also" links.

- [Gradient boosting (XGBoost, LightGBM) (Gradient-boosted trees)](https://aiatlasgraph.com/t/gradientboosting.md)
- [Wczesne ostrzeganie o uczniach zagrożonych niepowodzeniem (Early warning: predicting at-risk students)](https://aiatlasgraph.com/t/atriskprediction.md)

## Sources

- [Prospective, multi-site study of patient outcomes after implementation of the TREWS machine learning-based early warning system for sepsis](<https://www.nature.com/articles/s41591-022-01894-0>) `trews-2022` · by Roy Adams, Katharine E. Henry i in., Suchi Saria (Johns Hopkins) · sponsored
- [scikit-survival User Guide: Introduction to Survival Analysis](<https://scikit-survival.readthedocs.io/en/stable/user_guide/00-introduction.html>) `sksurv-intro` · by Sebastian Pölsterl (scikit-survival)
- [TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods](<https://www.bmj.com/content/385/bmj-2023-078378>) `tripod-ai-2024` · by Gary S. Collins, Karel G. M. Moons, Paula Dhiman, Richard D. Riley, Andrew L. Beam i in.

---

AI Atlas revision 124 (2026-10-31) · HTML: https://aiatlasgraph.com/t/clinicalprediction · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
