app.mimic3bp_converter module
File: app/mimic3bp_converter.py Project: 22HLT01 QUMPHY Contact: nando.hegemann@ptb.de Gitlab: https://gitlab.com/qumphy Description: Convert MIMIC-III Blood Pressure Database into PPG training chunks. SPDX-License-Identifier: EUPL-1.2
- app.mimic3bp_converter.convert(file_name, save_path, folds=1)[source]
Chunk data into multiple npy files.
- Return type:
str- Parameters:
file_name (str) – Path to file.
save_path (str) – Save directory.
folds (int, optional) – Number of different files the file is split into.
- Returns:
Save location.
- app.mimic3bp_converter.map_labels_to_classes(blood_pressure)[source]
Map systolic/diastolic blood pressure to hypertension classes.
The hypertension classes are given by the following table
Category
Value
Systolic (mmgG)
and/or
Diastolic (mmHg)
normal
0
< 120
and
< 80
elevated
1
120 - 129
and
< 80
Hypertension Stage 1
2
130 - 139
or
80 - 89
Hypertension Stage 2
3
> 139
or
> 89
Hypertensive Crisis
4
> 179
and/or
> 119
Classes separation is done according to Hypertension classes.
- Parameters:
blood_pressure (np.ndarray) – Array with systolic/diastolic blood pressure values.
- Returns:
Array containing respevtive hypertension classes.
- Return type:
ndarray