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91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
---
language: en
license: mit
task_categories:
- text-classification
tags:
- clinical-trials
- five-node-cascade
- cascade-recovery
- shock
size_categories:
- 1K<n<10K
pretty_name: Clinical Five Node Shock Cascade Boundary v0.5
---

# What this repo does

This repository provides a Clarus v0.5 cascade recovery geometry dataset modeling shock cascade transition with a five-node clinical structure.

Earlier Clarus datasets focused on state detection and boundary discovery.

Version v0.5 adds a recovery geometry layer that asks a stricter question:

Can the system still return to stability?

The task is binary classification over shock-linked deterioration states using:

• a five-node clinical cascade  
• trajectory dynamics  
• boundary discovery signals  
• recovery geometry variables

Models must determine whether the shock cascade remains recoverable or has crossed into irreversible deterioration.

---

# Core five-node cascade

The core five-node structure for this dataset is:

• hemodynamic_pressure  
• physiological_buffer  
• intervention_delay  
• organ_coupling  
• perfusion_instability

Operational interpretation:

hemodynamic_pressure  
Represents circulatory burden such as hypotensive stress, vasoplegia, preload loss, or escalating shock pressure.

physiological_buffer  
Represents physiological reserve available to absorb hemodynamic insult.

intervention_delay  
Captures delay before fluids, vasopressors, transfusion, source control, or other stabilizing interventions.

organ_coupling  
Represents propagation of dysfunction across interacting organ systems.

perfusion_instability  
Represents tissue hypoperfusion, microcirculatory failure, and worsening shock propagation.

---

## Terminology note

Earlier Clarus variants may use related circulatory naming such as perfusion_pressure.

In v0.5 this node is expressed as perfusion_instability.

The rename shifts emphasis from raw pressure level toward broader instability of perfusion dynamics while preserving the same normalized 0 to 1 scale.

---

# Trajectory layer

The dataset includes a trajectory signal:

drift_gradient

Range:

−1 to +1

Interpretation:

negative values indicate motion toward recovery  
positive values indicate motion toward deterioration

This lets the model infer directional movement rather than assess a static snapshot alone.

---

# Dynamic forecasting layer

Three dynamic variables describe system motion:

• drift_velocity  
• drift_acceleration  
• boundary_distance

These variables allow models to reason about how quickly the system is moving and how near it lies to the cascade boundary.

---

# Boundary discovery layer

The dataset retains the boundary discovery layer introduced in v0.4.

Variables:

• perturbation_radius  
• collapse_trigger

Interpretation:

perturbation_radius  
Measures how much disturbance the system can absorb before crossing into collapse.

collapse_trigger  
Binary indicator that the instability boundary has been crossed.

---

# Recovery geometry layer

v0.5 introduces a recovery geometry layer that determines whether recovery remains possible.

Variables:

• recovery_distance  
• recovery_gradient  
• return_feasibility

These variables transform the task from collapse detection into recovery reasoning.

Models must determine not only whether a system is unstable, but whether a path back to stability still exists.

---

# Recovery variable definitions

## recovery_distance

Distance from the current system state to the nearest stable basin.

Definition:

`recovery_distance = min ||x - x_stable||`

Range:

0 to 1

Interpretation:

small values indicate proximity to a recoverable region  
large values indicate deep cascade penetration

---

## recovery_gradient

Direction of motion relative to the nearest recovery basin.

Range:

−1 to +1

Interpretation:

negative values indicate motion toward recovery  
positive values indicate motion deeper into collapse

---

## return_feasibility

Binary indicator representing whether recovery remains possible.

Values:

0  
system has crossed an irreversible cascade boundary

1  
system still lies within a recoverable region

---

# Prediction target

Target column:

`label_shock_cascade`

A positive label indicates irreversible shock cascade transition.

## Collapse threshold

The cascade boundary threshold used for labeling is:

`collapse_threshold = 0.05`

## Label logic

Positive labels trigger when either condition holds:

`boundary_distance < 0.05`

or

`return_feasibility = 0`

This encodes irreversible cascade detection.

---

# Binary simplification note

The underlying system dynamics are continuous and multi-dimensional.

For benchmark clarity, the dataset compresses this structure into a binary classification task:

recoverable state  
versus  
irreversible deterioration

The recovery geometry variables preserve the deeper system structure.

---

# Row structure

Each dataset row contains:

scenario_id

hemodynamic_pressure  
physiological_buffer  
intervention_delay  
organ_coupling  
perfusion_instability

drift_gradient  
drift_velocity  
drift_acceleration  
boundary_distance

perturbation_radius  
collapse_trigger

recovery_distance  
recovery_gradient  
return_feasibility

label_shock_cascade

---

# Variable ranges

State variables

0 to 1

drift_gradient

−1 to +1

drift_velocity

0 to 1

drift_acceleration

−1 to +1

boundary_distance

0 to 1

perturbation_radius

0 to 1

collapse_trigger

0 or 1

recovery_distance

0 to 1

recovery_gradient

−1 to +1

return_feasibility

0 or 1

---

# Files

data/train.csv  
Labeled training examples.

data/tester.csv  
Unlabeled test scenarios.

scorer.py  
Evaluation script for binary classification.

cli.py  
Optional command-line wrapper for running the scorer.

README.md  
Dataset documentation.

---

# Evaluation

The scorer reports the following metrics:

accuracy  
precision  
recall_irreversible_detection  
false_recovery_rate  
f1  
confusion_matrix

Primary metric

recall_irreversible_detection

This metric prioritizes detection of irreversible deterioration.

Secondary diagnostic metric

false_recovery_rate

This measures how often irreversible states are incorrectly treated as recoverable.

---

# Version progression

Clarus datasets evolve through successive capability layers.

v0.1  
Cascade state detection datasets

v0.2  
Cascade + trajectory datasets

v0.3  
Cascade + trajectory + dynamic forecasting datasets

v0.4  
Cascade + trajectory + dynamics + boundary discovery datasets

v0.5  
Cascade + trajectory + dynamics + boundary discovery + recovery geometry datasets

Earlier versions remain unchanged to preserve benchmark continuity.

---

# License

MIT

---

# Structural Note

Clarus v0.5 marks the transition from instability mapping to recovery geometry.

Earlier datasets asked whether systems were approaching collapse.

v0.5 asks a more operational question:

Is recovery still structurally possible?

This makes the dataset class closer to real-world decision support systems.

---

# Production Deployment

Recovery geometry datasets are suitable for applications where distinguishing recoverable shock states from irreversible cascade is critical.

Possible domains include:

shock escalation monitoring  
critical care surveillance  
perfusion rescue pathway modeling  
intervention timing simulation

---

# Enterprise & Research Collaboration

For dataset expansion, custom coherence scorers, or deployment architecture:

team@clarusinvariant.com

Instability is detectable.  
Governance determines whether it propagates.