Research Article

Machine Learning Models for Analysis of Vital Signs Dynamics: A Case for Sepsis Onset Prediction

Algorithm 1

Creating Yi vectors.
Input X
Output Y and NY
Y1 = X2
j = 1
for i = 2 ... NX − 1 do
 if Xi+1 ≥ Xi then
  if Xi ≥ Xi−1 then
   Yj = Xi+1
  end if
  else then
   j = j + 1
   Yj = Xi+1
  end else
 end if
 else then
  if Xi ≤ Xi−1 then
   Yj = Xi+1
  end if
  else
   j = j + 1
   Yj = Xi+1
  end else
 end else
end for