Skip to main content
Version: Next

Basic Usage

Prerequisites read

pip install opendbm

In this section, we are gonna show the basic instruction on how to get biomarker variable from OpenDBM API

from opendbm import Movement

# code below is how to access to other dbm groups
# from opendbm import FacialActivity, VerbalAcoustics, Speech
path = "movement_video_test.mp4"
#initiate the model
model = Movement()
#Feed input data to the model
model.fit(path)

After we processed the data with our model, now we can get all biomarker variables related to the Movement category

#Get facial tremor
tremor = model.get_facial_tremor()
tremor.to_dataframe().T
0
fac_features_mean_58.594771
fac_tremor_median_53.87593
fac_disp_median_50.728575
fac_corr_50.254649
fac_features_mean_123.719481
fac_tremor_median_122.806784
fac_disp_median_120.723145
fac_corr_120.456196
fac_features_mean_86.721486
fac_tremor_median_83.586131
fac_disp_median_80.825251
fac_corr_80.391167
fac_features_mean_482.860846
fac_tremor_median_482.174091
fac_disp_median_480.86145
fac_corr_480.646405
fac_features_mean_543.678142
fac_tremor_median_542.669815
fac_disp_median_540.886973
fac_corr_540.578275
fac_features_mean_280.0
fac_tremor_median_280.0
fac_disp_median_280.677184
fac_corr_281.0
fac_features_mean_510.765473
fac_tremor_median_510.54762
fac_disp_median_510.750383
fac_corr_510.897752
fac_features_mean_661.971278
fac_tremor_median_661.49907
fac_disp_median_660.938139
fac_corr_660.776121
fac_features_mean_572.70601
fac_tremor_median_572.019033
fac_disp_median_570.988482
fac_corr_570.713824
error_reason
##Get Eye Blink
eye_blink = model.get_eye_blink()
eye_blink.to_dataframe()
mov_blink_earvid_durfpsmov_blinkframesmov_blinkdurdbm_master_url
00.12456633.87731329190.655172movement_video_test.mp4
10.12534333.87731329491.034483movement_video_test.mp4
20.10871333.877313291202.448276movement_video_test.mp4
30.09755333.877313291691.689655movement_video_test.mp4
40.11187433.877313292412.482759movement_video_test.mp4
50.07708233.877313293283.000000movement_video_test.mp4
60.12480433.877313293872.034483movement_video_test.mp4
70.08214933.877313295064.103448movement_video_test.mp4
80.08304133.877313295501.517241movement_video_test.mp4
90.14883633.877313296874.724138movement_video_test.mp4
100.09992633.877313297341.620690movement_video_test.mp4
110.08307833.877313298092.586207movement_video_test.mp4
120.12450133.877313298471.310345movement_video_test.mp4
130.14966833.877313299312.896552movement_video_test.mp4