Bring back deleted lines which are required.
parent
712ff74898
commit
8e2222f307
163
config.yaml
163
config.yaml
|
@ -34,6 +34,9 @@ TIMEZONE:
|
||||||
TZCODES_FILE: data/external/multiple_timezones.csv
|
TZCODES_FILE: data/external/multiple_timezones.csv
|
||||||
IF_MISSING_TZCODE: USE_DEFAULT
|
IF_MISSING_TZCODE: USE_DEFAULT
|
||||||
DEFAULT_TZCODE: Europe/Ljubljana
|
DEFAULT_TZCODE: Europe/Ljubljana
|
||||||
|
FITBIT:
|
||||||
|
ALLOW_MULTIPLE_TZ_PER_DEVICE: False
|
||||||
|
INFER_FROM_SMARTPHONE_TZ: False
|
||||||
|
|
||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
# PHONE #
|
# PHONE #
|
||||||
|
@ -91,6 +94,16 @@ PHONE_ACTIVITY_RECOGNITION:
|
||||||
VEHICLE: ["in_vehicle"]
|
VEHICLE: ["in_vehicle"]
|
||||||
SRC_SCRIPT: src/features/phone_activity_recognition/rapids/main.py
|
SRC_SCRIPT: src/features/phone_activity_recognition/rapids/main.py
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/phone-applications-crashes/
|
||||||
|
PHONE_APPLICATIONS_CRASHES:
|
||||||
|
CONTAINER: applications_crashes
|
||||||
|
APPLICATION_CATEGORIES:
|
||||||
|
CATALOGUE_SOURCE: FILE # FILE (genres are read from CATALOGUE_FILE) or GOOGLE (genres are scrapped from the Play Store)
|
||||||
|
CATALOGUE_FILE: "data/external/stachl_application_genre_catalogue.csv"
|
||||||
|
UPDATE_CATALOGUE_FILE: False # if CATALOGUE_SOURCE is equal to FILE, whether or not to update CATALOGUE_FILE, if CATALOGUE_SOURCE is equal to GOOGLE all scraped genres will be saved to CATALOGUE_FILE
|
||||||
|
SCRAPE_MISSING_CATEGORIES: False # whether or not to scrape missing genres, only effective if CATALOGUE_SOURCE is equal to FILE. If CATALOGUE_SOURCE is equal to GOOGLE, all genres are scraped anyway
|
||||||
|
PROVIDERS: # None implemented yet but this sensor can be used in PHONE_DATA_YIELD
|
||||||
|
|
||||||
# See https://www.rapids.science/latest/features/phone-applications-foreground/
|
# See https://www.rapids.science/latest/features/phone-applications-foreground/
|
||||||
PHONE_APPLICATIONS_FOREGROUND:
|
PHONE_APPLICATIONS_FOREGROUND:
|
||||||
CONTAINER: applications
|
CONTAINER: applications
|
||||||
|
@ -208,6 +221,15 @@ PHONE_DATA_YIELD:
|
||||||
MINUTE_RATIO_THRESHOLD_FOR_VALID_YIELDED_HOURS: 0.5 # 0 to 1, minimum percentage of valid minutes in an hour to be considered valid.
|
MINUTE_RATIO_THRESHOLD_FOR_VALID_YIELDED_HOURS: 0.5 # 0 to 1, minimum percentage of valid minutes in an hour to be considered valid.
|
||||||
SRC_SCRIPT: src/features/phone_data_yield/rapids/main.R
|
SRC_SCRIPT: src/features/phone_data_yield/rapids/main.R
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/phone-keyboard/
|
||||||
|
PHONE_KEYBOARD:
|
||||||
|
CONTAINER: keyboard
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES: ["sessioncount","averageinterkeydelay","averagesessionlength","changeintextlengthlessthanminusone","changeintextlengthequaltominusone","changeintextlengthequaltoone","changeintextlengthmorethanone","maxtextlength","lastmessagelength","totalkeyboardtouches"]
|
||||||
|
SRC_SCRIPT: src/features/phone_keyboard/rapids/main.py
|
||||||
|
|
||||||
# See https://www.rapids.science/latest/features/phone-light/
|
# See https://www.rapids.science/latest/features/phone-light/
|
||||||
PHONE_LIGHT:
|
PHONE_LIGHT:
|
||||||
CONTAINER: light
|
CONTAINER: light
|
||||||
|
@ -299,6 +321,147 @@ PHONE_WIFI_VISIBLE:
|
||||||
SRC_SCRIPT: src/features/phone_wifi_visible/rapids/main.R
|
SRC_SCRIPT: src/features/phone_wifi_visible/rapids/main.R
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
########################################################################################################################
|
||||||
|
# FITBIT #
|
||||||
|
########################################################################################################################
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/setup/configuration/#data-stream-configuration
|
||||||
|
FITBIT_DATA_STREAMS:
|
||||||
|
USE: fitbitjson_mysql
|
||||||
|
|
||||||
|
# AVAILABLE:
|
||||||
|
fitbitjson_mysql:
|
||||||
|
DATABASE_GROUP: MY_GROUP
|
||||||
|
SLEEP_SUMMARY_LAST_NIGHT_END: 660 # a number ranged from 0 (midnight) to 1439 (23:59) which denotes number of minutes after midnight. By default, 660 (11:00).
|
||||||
|
|
||||||
|
fitbitparsed_mysql:
|
||||||
|
DATABASE_GROUP: MY_GROUP
|
||||||
|
SLEEP_SUMMARY_LAST_NIGHT_END: 660 # a number ranged from 0 (midnight) to 1439 (23:59) which denotes number of minutes after midnight. By default, 660 (11:00).
|
||||||
|
|
||||||
|
fitbitjson_csv:
|
||||||
|
FOLDER: data/external/fitbit_csv
|
||||||
|
SLEEP_SUMMARY_LAST_NIGHT_END: 660 # a number ranged from 0 (midnight) to 1439 (23:59) which denotes number of minutes after midnight. By default, 660 (11:00).
|
||||||
|
|
||||||
|
fitbitparsed_csv:
|
||||||
|
FOLDER: data/external/fitbit_csv
|
||||||
|
SLEEP_SUMMARY_LAST_NIGHT_END: 660 # a number ranged from 0 (midnight) to 1439 (23:59) which denotes number of minutes after midnight. By default, 660 (11:00).
|
||||||
|
|
||||||
|
# Sensors ------
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-calories-intraday/
|
||||||
|
FITBIT_CALORIES_INTRADAY:
|
||||||
|
CONTAINER: fitbit_data
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
EPISODE_TYPE: [sedentary, lightlyactive, fairlyactive, veryactive, mvpa, lowmet, highmet]
|
||||||
|
EPISODE_TIME_THRESHOLD: 5 # minutes
|
||||||
|
EPISODE_MET_THRESHOLD: 3
|
||||||
|
EPISODE_MVPA_CATEGORIES: [fairlyactive, veryactive]
|
||||||
|
EPISODE_REFERENCE_TIME: MIDNIGHT # or START_OF_THE_SEGMENT
|
||||||
|
FEATURES: [count, sumduration, avgduration, minduration, maxduration, stdduration, starttimefirst, endtimefirst, starttimelast, endtimelast, starttimelongest, endtimelongest, summet, avgmet, maxmet, minmet, stdmet, sumcalories, avgcalories, maxcalories, mincalories, stdcalories]
|
||||||
|
SRC_SCRIPT: src/features/fitbit_calories_intraday/rapids/main.R
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-data-yield/
|
||||||
|
FITBIT_DATA_YIELD:
|
||||||
|
SENSOR: FITBIT_HEARTRATE_INTRADAY
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES: [ratiovalidyieldedminutes, ratiovalidyieldedhours]
|
||||||
|
MINUTE_RATIO_THRESHOLD_FOR_VALID_YIELDED_HOURS: 0.5 # 0 to 1, minimum percentage of valid minutes in an hour to be considered valid.
|
||||||
|
SRC_SCRIPT: src/features/fitbit_data_yield/rapids/main.R
|
||||||
|
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-heartrate-summary/
|
||||||
|
FITBIT_HEARTRATE_SUMMARY:
|
||||||
|
CONTAINER: heartrate_summary
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES: ["maxrestinghr", "minrestinghr", "avgrestinghr", "medianrestinghr", "moderestinghr", "stdrestinghr", "diffmaxmoderestinghr", "diffminmoderestinghr", "entropyrestinghr"] # calories features' accuracy depend on the accuracy of the participants fitbit profile (e.g. height, weight) use these with care: ["sumcaloriesoutofrange", "maxcaloriesoutofrange", "mincaloriesoutofrange", "avgcaloriesoutofrange", "mediancaloriesoutofrange", "stdcaloriesoutofrange", "entropycaloriesoutofrange", "sumcaloriesfatburn", "maxcaloriesfatburn", "mincaloriesfatburn", "avgcaloriesfatburn", "mediancaloriesfatburn", "stdcaloriesfatburn", "entropycaloriesfatburn", "sumcaloriescardio", "maxcaloriescardio", "mincaloriescardio", "avgcaloriescardio", "mediancaloriescardio", "stdcaloriescardio", "entropycaloriescardio", "sumcaloriespeak", "maxcaloriespeak", "mincaloriespeak", "avgcaloriespeak", "mediancaloriespeak", "stdcaloriespeak", "entropycaloriespeak"]
|
||||||
|
SRC_SCRIPT: src/features/fitbit_heartrate_summary/rapids/main.py
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-heartrate-intraday/
|
||||||
|
FITBIT_HEARTRATE_INTRADAY:
|
||||||
|
CONTAINER: heartrate_intraday
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES: ["maxhr", "minhr", "avghr", "medianhr", "modehr", "stdhr", "diffmaxmodehr", "diffminmodehr", "entropyhr", "minutesonoutofrangezone", "minutesonfatburnzone", "minutesoncardiozone", "minutesonpeakzone"]
|
||||||
|
SRC_SCRIPT: src/features/fitbit_heartrate_intraday/rapids/main.py
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-sleep-summary/
|
||||||
|
FITBIT_SLEEP_SUMMARY:
|
||||||
|
CONTAINER: sleep_summary
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES: ["firstwaketime", "lastwaketime", "firstbedtime", "lastbedtime", "countepisode", "avgefficiency", "sumdurationafterwakeup", "sumdurationasleep", "sumdurationawake", "sumdurationtofallasleep", "sumdurationinbed", "avgdurationafterwakeup", "avgdurationasleep", "avgdurationawake", "avgdurationtofallasleep", "avgdurationinbed"]
|
||||||
|
SLEEP_TYPES: ["main", "nap", "all"]
|
||||||
|
SRC_SCRIPT: src/features/fitbit_sleep_summary/rapids/main.py
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-sleep-intraday/
|
||||||
|
FITBIT_SLEEP_INTRADAY:
|
||||||
|
CONTAINER: sleep_intraday
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES:
|
||||||
|
LEVELS_AND_TYPES: [countepisode, sumduration, maxduration, minduration, avgduration, medianduration, stdduration]
|
||||||
|
RATIOS_TYPE: [count, duration]
|
||||||
|
RATIOS_SCOPE: [ACROSS_LEVELS, ACROSS_TYPES, WITHIN_LEVELS, WITHIN_TYPES]
|
||||||
|
SLEEP_LEVELS:
|
||||||
|
INCLUDE_ALL_GROUPS: True
|
||||||
|
CLASSIC: [awake, restless, asleep]
|
||||||
|
STAGES: [wake, deep, light, rem]
|
||||||
|
UNIFIED: [awake, asleep]
|
||||||
|
SLEEP_TYPES: [main, nap, all]
|
||||||
|
SRC_SCRIPT: src/features/fitbit_sleep_intraday/rapids/main.py
|
||||||
|
|
||||||
|
PRICE:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES: [avgduration, avgratioduration, avgstarttimeofepisodemain, avgendtimeofepisodemain, avgmidpointofepisodemain, stdstarttimeofepisodemain, stdendtimeofepisodemain, stdmidpointofepisodemain, socialjetlag, rmssdmeanstarttimeofepisodemain, rmssdmeanendtimeofepisodemain, rmssdmeanmidpointofepisodemain, rmssdmedianstarttimeofepisodemain, rmssdmedianendtimeofepisodemain, rmssdmedianmidpointofepisodemain]
|
||||||
|
SLEEP_LEVELS:
|
||||||
|
INCLUDE_ALL_GROUPS: True
|
||||||
|
CLASSIC: [awake, restless, asleep]
|
||||||
|
STAGES: [wake, deep, light, rem]
|
||||||
|
UNIFIED: [awake, asleep]
|
||||||
|
DAY_TYPES: [WEEKEND, WEEK, ALL]
|
||||||
|
LAST_NIGHT_END: 660 # number of minutes after midnight (11:00) 11*60
|
||||||
|
SRC_SCRIPT: src/features/fitbit_sleep_intraday/price/main.py
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-steps-summary/
|
||||||
|
FITBIT_STEPS_SUMMARY:
|
||||||
|
CONTAINER: steps_summary
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES: ["maxsumsteps", "minsumsteps", "avgsumsteps", "mediansumsteps", "stdsumsteps"]
|
||||||
|
SRC_SCRIPT: src/features/fitbit_steps_summary/rapids/main.py
|
||||||
|
|
||||||
|
# See https://www.rapids.science/latest/features/fitbit-steps-intraday/
|
||||||
|
FITBIT_STEPS_INTRADAY:
|
||||||
|
CONTAINER: steps_intraday
|
||||||
|
EXCLUDE_SLEEP: # you can exclude step data that was logged during sleep periods
|
||||||
|
TIME_BASED:
|
||||||
|
EXCLUDE: False
|
||||||
|
START_TIME: "23:00"
|
||||||
|
END_TIME: "07:00"
|
||||||
|
FITBIT_BASED:
|
||||||
|
EXCLUDE: False
|
||||||
|
PROVIDERS:
|
||||||
|
RAPIDS:
|
||||||
|
COMPUTE: False
|
||||||
|
FEATURES:
|
||||||
|
STEPS: ["sum", "max", "min", "avg", "std"]
|
||||||
|
SEDENTARY_BOUT: ["countepisode", "sumduration", "maxduration", "minduration", "avgduration", "stdduration"]
|
||||||
|
ACTIVE_BOUT: ["countepisode", "sumduration", "maxduration", "minduration", "avgduration", "stdduration"]
|
||||||
|
THRESHOLD_ACTIVE_BOUT: 10 # steps
|
||||||
|
INCLUDE_ZERO_STEP_ROWS: False
|
||||||
|
SRC_SCRIPT: src/features/fitbit_steps_intraday/rapids/main.py
|
||||||
|
|
||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
# EMPATICA #
|
# EMPATICA #
|
||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
|
|
Loading…
Reference in New Issue