IDKHowToCodeFr commited on
Commit
66b96fd
·
verified ·
1 Parent(s): 67e143d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. ARCHITECTURE.md +13 -8
ARCHITECTURE.md CHANGED
@@ -279,12 +279,17 @@ Where:
279
  Before feeding raw signals into estimators, the pipeline executes deterministic preprocessing:
280
  1. **Target Leakage Prevention**: Strips redundant diagnostic alarm flags (`Heart Rate Alert`, `SpO2 Alert`, `Blood Pressure Alert`).
281
  2. **Encoding Normalization**: Replaces corrupt degree characters (`\ufffd` or ISO artifacts) with UTF-8 `°C`.
282
- 3. **Synthetic Clinical Interaction Feature (Risk Severity)**:
283
- $$\text{Risk\textunderscore Severity} = \mathbb{I}(\text{Heart\textunderscore Rate} > 105) + \mathbb{I}(\text{SpO2\textunderscore Level} < 94)$$
284
- Where $\mathbb{I}(\cdot)$ is the indicator function:
285
- $$\mathbb{I}(P) = \begin{cases} 1 & \text{if } P \text{ is true} \\ 0 & \text{if } P \text{ is false} \end{cases}$$
 
 
 
 
286
  4. **Standard Scaling Affine Transformation**:
287
- $$z_j = \frac{x_j - \mu_j}{\sigma_j} \quad \text{for } j \in \{0, 1, 2, 3, 4, 5\}$$
 
288
 
289
  #### Precomputed Scaling Constants (Flash ROM & In-Memory Registry)
290
 
@@ -449,10 +454,10 @@ flowchart TD
449
  C --> D["Fit 5 Estimators in Parallel<br/>(RF, SVM, LogReg, SmallNN, KNN)"]
450
  D --> E["Stratified 20% Holdout Split Evaluation"]
451
 
452
- E --> F{"Holdout F1 >= Active Baseline?"}
453
 
454
- F -->|YES (Validated)| G["Atomic Pointer Hot-Swap<br/>(0ms Downtime In-Memory Transition)"]
455
- F -->|NO (Degraded)| H["Automated Rollback Trigger<br/>(Preserve Active Registry, Log Incident)"]
456
 
457
  classDef pass fill:#F0FDF4,stroke:#16A34A,stroke-width:2px,color:#14532D;
458
  classDef fail fill:#FEF2F2,stroke:#DC2626,stroke-width:2px,color:#991B1B;
 
279
  Before feeding raw signals into estimators, the pipeline executes deterministic preprocessing:
280
  1. **Target Leakage Prevention**: Strips redundant diagnostic alarm flags (`Heart Rate Alert`, `SpO2 Alert`, `Blood Pressure Alert`).
281
  2. **Encoding Normalization**: Replaces corrupt degree characters (`\ufffd` or ISO artifacts) with UTF-8 `°C`.
282
+ 3. **Synthetic Clinical Interaction Feature (`Risk_Severity`)**:
283
+
284
+ $$\text{Risk\_Severity} = \mathbb{I}(\text{Heart\_Rate} > 105) + \mathbb{I}(\text{SpO2\_Level} < 94)$$
285
+
286
+ Where $\mathbb{I}(\cdot)$ is the binary indicator evaluation function:
287
+
288
+ $$\mathbb{I}(P) = \begin{cases} 1, & \text{if } P \text{ is true} \\ 0, & \text{if } P \text{ is false} \end{cases}$$
289
+
290
  4. **Standard Scaling Affine Transformation**:
291
+
292
+ $$z_j = \frac{x_j - \mu_j}{\sigma_j} \quad \text{for } j \in \{0, 1, 2, 3, 4, 5\}$$
293
 
294
  #### Precomputed Scaling Constants (Flash ROM & In-Memory Registry)
295
 
 
454
  C --> D["Fit 5 Estimators in Parallel<br/>(RF, SVM, LogReg, SmallNN, KNN)"]
455
  D --> E["Stratified 20% Holdout Split Evaluation"]
456
 
457
+ E --> F{"Holdout F1 ≥ Active Baseline?"}
458
 
459
+ F -->|YES - Validated| G["Atomic Pointer Hot-Swap<br/>(0ms Downtime In-Memory Transition)"]
460
+ F -->|NO - Degraded| H["Automated Rollback Trigger<br/>(Preserve Active Registry, Log Incident)"]
461
 
462
  classDef pass fill:#F0FDF4,stroke:#16A34A,stroke-width:2px,color:#14532D;
463
  classDef fail fill:#FEF2F2,stroke:#DC2626,stroke-width:2px,color:#991B1B;