Hospital inputsקלט בית חולים
- Demographics
- Vital signs
- Laboratory results
- Comorbidities
- Habits and home medications
- דמוגרפיה
- מדדים חיוניים
- בדיקות מעבדה
- מחלות רקע
- הרגלים ותרופות קבועות
The hospital architecture separates cohort eligibility, preprocessing, model fitting and threshold selection. Missingness is handled inside cross-validation, imaging is not required, and no heuristic is presented as a trained hospital model.
הארכיטקטורה מפרידה בין זכאות לעוקבה, עיבוד מקדים, אימון המודל ובחירת הסף. הטיפול בחוסרים מתבצע בתוך Cross-Validation, אין דרישה להדמיה, ואין הצגה של נוסחת גיבוי כמודל בית חולים מאומן.
This diagram reflects the implemented hospital training path in the repository. The final hospital coefficients and performance are not yet available because hospital data have not yet been supplied.
התרשים משקף את מסלול האימון הממומש במאגר. המקדמים והביצועים הסופיים בבית החולים עדיין אינם זמינים, משום שטרם התקבל מאגר בית החולים.
Hospital record
→ eligibility + completeness audit
→ canonical units + derived features
→ availability-based feature selection
→ StratifiedKFold(5)
→ numeric: median imputer + missing indicators + scaling
→ categorical: most-frequent imputer + one-hot encoding
→ LogisticRegression(class_weight="balanced", solver="liblinear")
→ out-of-fold probabilities
→ threshold targeting sensitivity ≥ 0.98
→ final serialised model bundle
→ /predict: severe-AP probability + thresholded risk group
The architecture deliberately distinguishes essential cohort fields from predictors and prevents outcome or treatment leakage.
הארכיטקטורה מפרידה בכוונה בין שדות הכרחיים להגדרת העוקבה לבין משתני ניבוי, ומונעת דליפת תוצאים או טיפול.
| Componentרכיב | Implemented designמימוש | Reasonסיבה |
|---|---|---|
| Input window | First 24 hours from T0 | Keeps prediction temporally defined.מגדיר במדויק את זמן התחזית. |
| Imaging | Not required | The current hospital dataset specification has no structured imaging fields.במפרט הנוכחי אין שדות הדמיה מובנים. |
| Feature selection | Availability threshold, default 0.80 | Avoids building the primary model around rarely ordered tests.מונע תלות של המודל הראשי בבדיקות נדירות. |
| Numeric missingness | Median + missing indicator | Retains partial cases and preserves whether a value was absent.משמר מקרים חלקיים ואת עצם היעדר הערך. |
| Categorical missingness | Most frequent + one-hot | Provides a reproducible baseline for structured categories.מספק בסיס ניתן לשחזור למשתנים קטגוריאליים. |
| Classifier | Balanced logistic regression | Interpretable, stable baseline before comparing more complex models.בסיס פרשני ויציב לפני השוואה למודלים מורכבים יותר. |
| Validation | Out-of-fold predictions from stratified 5-fold CV | Threshold selection is based on held-out fold predictions.בחירת הסף מבוססת על תחזיות מקפלים שלא שימשו לאימון. |
| Operating point | Target sensitivity 0.98; maximise specificity | Prioritises a high-sensitivity research operating point.מעדיף נקודת הפעלה מחקרית בעלת רגישות גבוהה. |
| Runtime safety | No trained bundle → HTTP 503 | Prevents an untrained heuristic from appearing as a validated hospital model.מונע הצגת נוסחה לא מאומנת כמודל בית חולים תקף. |
Feature engineering is deterministic and fitted values are kept separate from clinical outcome fields.
הנדסת המאפיינים דטרמיניסטית, וערכי הניבוי נשמרים בנפרד משדות התוצא הקליניים.
Urea/BUN, creatinine, glucose, calcium, albumin, bilirubin and triglycerides can be reconciled between SI and legacy units.ניתן לאחד אוראה/BUN, קריאטינין, גלוקוז, סידן, אלבומין, בילירובין וטריגליצרידים בין יחידות SI ליחידות ישנות.
NLR, CRP/albumin, lipase/ULN, amylase/ULN and shock index.
BMI and mean arterial pressure are derived only when their required source measurements are present.
Persistent organ failure, ICU admission, later ventilation, renal replacement therapy, length of stay, mortality and discharge disposition are not predictors.כשל איברים מתמשך, טיפול נמרץ, הנשמה מאוחרת, דיאליזה, משך אשפוז, תמותה ויעד שחרור אינם משתני ניבוי.
Case eligibility, core coverage, selected features, feature availability, threshold and metrics are exported.מיוצאים זכאות המקרה, כיסוי הליבה, המאפיינים שנבחרו, זמינותם, הסף והמדדים.
Out-of-fold AUROC, average precision, F1, F2, sensitivity, specificity and confusion-matrix counts.
The implemented hospital path starts with an interpretable logistic-regression baseline. Other algorithms remain exploratory comparisons until they are retrained and evaluated under the same hospital pipeline.
מסלול בית החולים הממומש מתחיל ב־Logistic Regression פרשני. אלגוריתמים אחרים נשארים השוואות חקרניות עד שיאומנו וייבדקו מחדש תחת אותו Pipeline בית חולים.
| Model familyמשפחת מודל | Current roleתפקיד נוכחי | Hospital deployment statusמצב פריסה בבית חולים |
|---|---|---|
| Balanced Logistic Regression | Implemented primary hospital baselineבסיס בית החולים הראשי הממומש | Awaiting hospital trainingממתין לאימון |
| Random Forest / Gradient Boosting | Exploratory public-cohort comparisonהשוואה חקרנית בעוקבה ציבורית | Not fitted locallyלא אומן מקומית |
| XGBoost / LightGBM / CatBoost | Exploratory GBDT comparisonהשוואת GBDT חקרנית | Not fitted locallyלא אומן מקומית |
| MLP / Residual MLP / Attention MLP | Exploratory neural comparisonהשוואה נוירונית חקרנית | Not fitted locallyלא אומן מקומית |
| NGBoost / EBM | Exploratory probabilistic and interpretable comparisonהשוואה חקרנית הסתברותית ופרשנית | Not fitted locallyלא אומן מקומית |
The online research API applies the fitted feature contract rather than rebuilding preprocessing from request data.
ה־API המחקרי המקוון מפעיל את חוזה המאפיינים שאומן, במקום לבנות עיבוד מקדים מחדש מנתוני הבקשה.
Adult age, documented AP, enzyme criterion, 8/16 coverage and presence of vital and laboratory information.גיל בגיר, AP מתועד, קריטריון אנזימים, כיסוי 8/16 ונוכחות מידע חיוני ומעבדתי.
Normalise units and calculate the same deterministic derived variables used during training.נרמול יחידות וחישוב אותם משתנים נגזרים דטרמיניסטיים ששימשו באימון.
Missing fitted fields remain missing and are handled by the stored pipeline.מאפיינים חסרים נשארים חסרים ומטופלים על ידי ה־Pipeline השמור.
The serialised estimator returns a severe-AP probability.המסווג השמור מחזיר הסתברות ל־SAP.
The bundle threshold creates the research risk group; it is not a treatment recommendation.סף החבילה יוצר קבוצת סיכון מחקרית ואינו המלצת טיפול.
When no trained hospital bundle is configured, the endpoint returns HTTP 503.כאשר לא הוגדרה חבילת מודל מאומנת, נקודת הקצה מחזירה HTTP 503.
The architecture is ready for local mapping, feasibility analysis, retrospective training, calibration and external validation under hospital and ethics oversight.
הארכיטקטורה מוכנה למיפוי מקומי, בדיקת היתכנות, אימון רטרוספקטיבי, כיול ואימות חיצוני תחת פיקוח בית החולים והוועדה האתית.