2019-10-24 18:11:24 +02:00
# Participants to include in the analysis
2020-06-23 17:33:34 +02:00
# You must create a file for each participant named pXXX containing their device_id. This can be done manually or automatically
2020-07-23 03:54:19 +02:00
PIDS : [ t01]
2019-10-24 22:27:43 +02:00
# Global var with common day segments
DAY_SEGMENTS : &day_segments
2020-08-26 18:09:53 +02:00
TYPE : INTERVAL_EVERY_DAY # FREQUENCY_EVERY_DAY, INTERVAL_EVERY_DAY, INTERVAL_FLEXIBLE_DAY
FILE : "data/external/daysegments_interval.csv"
2020-07-23 03:54:19 +02:00
2019-11-05 21:17:20 +01:00
# Global timezone
2019-11-06 23:12:06 +01:00
# Use codes from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Double check your code, for example EST is not US Eastern Time.
2019-11-05 21:17:20 +01:00
TIMEZONE : &timezone
2019-11-06 23:12:06 +01:00
America/New_York
2019-11-05 21:17:20 +01:00
2020-02-10 22:45:34 +01:00
DATABASE_GROUP : &database_group
2020-03-09 17:55:43 +01:00
MY_GROUP
2020-02-10 22:45:34 +01:00
DOWNLOAD_PARTICIPANTS :
IGNORED_DEVICE_IDS : [ ] # for example "5a1dd68c-6cd1-48fe-ae1e-14344ac5215f"
GROUP : *database_group
2019-10-24 23:27:00 +02:00
# Download data config
DOWNLOAD_DATASET :
2020-02-10 22:45:34 +01:00
GROUP : *database_group
2019-10-24 23:27:00 +02:00
# Readable datetime config
READABLE_DATETIME :
2019-11-05 21:17:20 +01:00
FIXED_TIMEZONE : *timezone
2019-10-24 23:27:00 +02:00
2020-07-09 19:01:50 +02:00
PHONE_VALID_SENSED_BINS :
COMPUTE : False # This flag is automatically ignored (set to True) if you are extracting PHONE_VALID_SENSED_DAYS or screen or Barnett's location features
2020-07-22 22:47:32 +02:00
BIN_SIZE : &bin_size 5 # (in minutes)
2020-07-09 19:01:50 +02:00
# Add as many sensor tables as you have, they all improve the computation of PHONE_VALID_SENSED_BINS and PHONE_VALID_SENSED_DAYS.
2020-07-20 16:32:04 +02:00
# If you are extracting screen or Barnett's location features, screen and locations tables are mandatory.
2020-08-12 00:02:52 +02:00
DB_TABLES : [ ]
2020-07-09 19:01:50 +02:00
PHONE_VALID_SENSED_DAYS :
COMPUTE : False
2020-07-22 22:47:32 +02:00
MIN_VALID_HOURS_PER_DAY : &min_valid_hours_per_day [ 16 ] # (out of 24) MIN_HOURS_PER_DAY
2020-07-24 18:58:48 +02:00
MIN_VALID_BINS_PER_HOUR : &min_valid_bins_per_hour [ 6 ] # (out of 60min/BIN_SIZE bins)
2020-07-09 19:01:50 +02:00
2020-04-08 22:02:58 +02:00
# Communication SMS features config, TYPES and FEATURES keys need to match
2020-06-23 17:33:34 +02:00
MESSAGES :
COMPUTE : False
DB_TABLE : messages
2019-11-06 21:38:08 +01:00
TYPES : [ received, sent]
2020-04-08 22:02:58 +02:00
FEATURES :
2020-06-26 18:20:47 +02:00
received : [ count, distinctcontacts, timefirstmessage, timelastmessage, countmostfrequentcontact]
sent : [ count, distinctcontacts, timefirstmessage, timelastmessage, countmostfrequentcontact]
2019-11-06 21:38:08 +01:00
DAY_SEGMENTS : *day_segments
2020-04-08 17:51:18 +02:00
# Communication call features config, TYPES and FEATURES keys need to match
2019-11-06 20:47:33 +01:00
CALLS :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : calls
2019-11-06 20:47:33 +01:00
TYPES : [ missed, incoming, outgoing]
2020-04-08 17:51:18 +02:00
FEATURES :
2019-11-12 21:44:26 +01:00
missed : [ count, distinctcontacts, timefirstcall, timelastcall, countmostfrequentcontact]
2020-06-03 01:48:22 +02:00
incoming : [ count, distinctcontacts, meanduration, sumduration, minduration, maxduration, stdduration, modeduration, entropyduration, timefirstcall, timelastcall, countmostfrequentcontact]
outgoing : [ count, distinctcontacts, meanduration, sumduration, minduration, maxduration, stdduration, modeduration, entropyduration, timefirstcall, timelastcall, countmostfrequentcontact]
2019-10-25 16:21:09 +02:00
DAY_SEGMENTS : *day_segments
2019-11-05 18:34:22 +01:00
2020-01-16 00:28:56 +01:00
APPLICATION_GENRES :
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_GENRES : 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
2019-12-10 00:23:00 +01:00
RESAMPLE_FUSED_LOCATION :
CONSECUTIVE_THRESHOLD : 30 # minutes, only replicate location samples to the next sensed bin if the phone did not stop collecting data for more than this threshold
2020-06-11 18:25:49 +02:00
TIME_SINCE_VALID_LOCATION : 720 # minutes, only replicate location samples to consecutive sensed bins if they were logged within this threshold after a valid location row
2019-12-10 00:23:00 +01:00
TIMEZONE : *timezone
2019-11-05 21:17:20 +01:00
BARNETT_LOCATION :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : locations
2020-04-09 22:06:25 +02:00
DAY_SEGMENTS : [ daily] # These features are only available on a daily basis
2020-04-09 19:20:39 +02:00
FEATURES : [ "hometime" , "disttravelled" , "rog" , "maxdiam" , "maxhomedist" , "siglocsvisited" , "avgflightlen" , "stdflightlen" , "avgflightdur" , "stdflightdur" , "probpause" , "siglocentropy" , "circdnrtn" , "wkenddayrtn" ]
2020-06-29 19:50:33 +02:00
LOCATIONS_TO_USE : ALL # ALL, ALL_EXCEPT_FUSED OR RESAMPLE_FUSED
2019-12-10 01:15:10 +01:00
ACCURACY_LIMIT : 51 # meters, drops location coordinates with an accuracy higher than this. This number means there's a 68% probability the true location is within this radius
2019-11-06 18:19:30 +01:00
TIMEZONE : *timezone
2020-06-11 18:25:49 +02:00
MINUTES_DATA_USED : False # Use this for quality control purposes, how many minutes of data (location coordinates gruped by minute) were used to compute features
2019-11-06 18:19:30 +01:00
2020-07-16 20:26:43 +02:00
DORYAB_LOCATION :
2020-07-20 22:03:51 +02:00
COMPUTE : False
2020-07-16 20:26:43 +02:00
DB_TABLE : locations
DAY_SEGMENTS : *day_segments
FEATURES : [ "locationvariance" , "loglocationvariance" , "totaldistance" , "averagespeed" , "varspeed" , "circadianmovement" , "numberofsignificantplaces" , "numberlocationtransitions" , "radiusgyration" , "timeattop1location" , "timeattop2location" , "timeattop3location" , "movingtostaticratio" , "outlierstimepercent" , "maxlengthstayatclusters" , "minlengthstayatclusters" , "meanlengthstayatclusters" , "stdlengthstayatclusters" , "locationentropy" , "normalizedlocationentropy" ]
2020-07-20 22:03:51 +02:00
LOCATIONS_TO_USE : ALL # ALL, ALL_EXCEPT_FUSED OR RESAMPLE_FUSED
2020-07-16 20:26:43 +02:00
DBSCAN_EPS : 10 # meters
DBSCAN_MINSAMPLES : 5
THRESHOLD_STATIC : 1 # km/h
2020-07-22 00:56:43 +02:00
MAXIMUM_GAP_ALLOWED : 300
2020-07-23 20:38:59 +02:00
MINUTES_DATA_USED : False
2020-08-05 19:02:34 +02:00
SAMPLING_FREQUENCY : 0
2020-07-16 20:26:43 +02:00
2019-11-06 18:19:30 +01:00
BLUETOOTH :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : bluetooth
2020-07-23 18:00:51 +02:00
DAY_SEGMENTS : *day_segments
2020-04-03 23:03:45 +02:00
FEATURES : [ "countscans" , "uniquedevices" , "countscansmostuniquedevice" ]
2019-11-18 20:22:08 +01:00
2020-04-21 00:05:54 +02:00
ACTIVITY_RECOGNITION :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE :
ANDROID : plugin_google_activity_recognition
IOS : plugin_ios_activity_recognition
2019-11-18 20:22:08 +01:00
DAY_SEGMENTS : *day_segments
2020-06-05 01:32:28 +02:00
FEATURES : [ "count" , "mostcommonactivity" , "countuniqueactivities" , "activitychangecount" , "sumstationary" , "summobile" , "sumvehicle" ]
2019-11-25 18:53:32 +01:00
BATTERY :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : battery
2019-11-25 18:53:32 +01:00
DAY_SEGMENTS : *day_segments
2020-04-09 22:06:25 +02:00
FEATURES : [ "countdischarge" , "sumdurationdischarge" , "countcharge" , "sumdurationcharge" , "avgconsumptionrate" , "maxconsumptionrate" ]
2019-11-27 20:25:17 +01:00
SCREEN :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : screen
2019-11-27 20:25:17 +01:00
DAY_SEGMENTS : *day_segments
2020-03-04 18:21:36 +01:00
REFERENCE_HOUR_FIRST_USE : 0
2020-07-23 20:38:59 +02:00
IGNORE_EPISODES_SHORTER_THAN : 0 # in minutes, set to 0 to disable
IGNORE_EPISODES_LONGER_THAN : 0 # in minutes, set to 0 to disable
2020-04-08 17:05:16 +02:00
FEATURES_DELTAS : [ "countepisode" , "episodepersensedminutes" , "sumduration" , "maxduration" , "minduration" , "avgduration" , "stdduration" , "firstuseafter" ]
2020-03-03 23:31:15 +01:00
EPISODE_TYPES : [ "unlock" ]
2020-01-14 15:51:39 +01:00
LIGHT :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : light
2020-01-14 15:51:39 +01:00
DAY_SEGMENTS : *day_segments
2020-04-08 20:02:53 +02:00
FEATURES : [ "count" , "maxlux" , "minlux" , "avglux" , "medianlux" , "stdlux" ]
2020-01-15 20:15:24 +01:00
ACCELEROMETER :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : accelerometer
2020-01-15 20:15:24 +01:00
DAY_SEGMENTS : *day_segments
2020-06-22 18:01:17 +02:00
FEATURES :
MAGNITUDE : [ "maxmagnitude" , "minmagnitude" , "avgmagnitude" , "medianmagnitude" , "stdmagnitude" ]
2020-06-22 19:47:25 +02:00
EXERTIONAL_ACTIVITY_EPISODE : [ "sumduration" , "maxduration" , "minduration" , "avgduration" , "medianduration" , "stdduration" ]
NONEXERTIONAL_ACTIVITY_EPISODE : [ "sumduration" , "maxduration" , "minduration" , "avgduration" , "medianduration" , "stdduration" ]
2020-06-26 23:35:29 +02:00
VALID_SENSED_MINUTES : False
2020-01-29 22:22:53 +01:00
2020-02-07 17:52:55 +01:00
APPLICATIONS_FOREGROUND :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : applications_foreground
2020-02-07 17:52:55 +01:00
DAY_SEGMENTS : *day_segments
2020-06-19 22:22:57 +02:00
SINGLE_CATEGORIES : [ "all" , "email" ]
2020-02-07 17:52:55 +01:00
MULTIPLE_CATEGORIES :
social : [ "socialnetworks" , "socialmediatools" ]
entertainment : [ "entertainment" , "gamingknowledge" , "gamingcasual" , "gamingadventure" , "gamingstrategy" , "gamingtoolscommunity" , "gamingroleplaying" , "gamingaction" , "gaminglogic" , "gamingsports" , "gamingsimulation" ]
SINGLE_APPS : [ "top1global" , "com.facebook.moments" , "com.google.android.youtube" , "com.twitter.android" ] # There's no entropy for single apps
2020-08-03 19:09:16 +02:00
EXCLUDED_CATEGORIES : [ "system_apps" ]
2020-02-07 17:52:55 +01:00
EXCLUDED_APPS : [ "com.fitbit.FitbitMobile" , "com.aware.plugin.upmc.cancer" ]
2020-04-08 19:31:43 +02:00
FEATURES : [ "count" , "timeoffirstuse" , "timeoflastuse" , "frequencyentropy" ]
2020-02-07 17:52:55 +01:00
2020-02-07 17:35:15 +01:00
HEARTRATE :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : fitbit_data
2020-02-07 17:35:15 +01:00
DAY_SEGMENTS : *day_segments
2020-06-23 17:33:34 +02:00
SUMMARY_FEATURES : [ "restinghr" ] # calories features' accuracy depend on the accuracy of the participants fitbit profile (e.g. heigh, weight) use with care : [ "caloriesoutofrange" , "caloriesfatburn" , "caloriescardio" , "caloriespeak" ]
2020-06-22 20:15:56 +02:00
INTRADAY_FEATURES : [ "maxhr" , "minhr" , "avghr" , "medianhr" , "modehr" , "stdhr" , "diffmaxmodehr" , "diffminmodehr" , "entropyhr" , "minutesonoutofrangezone" , "minutesonfatburnzone" , "minutesoncardiozone" , "minutesonpeakzone" ]
2020-02-07 17:35:15 +01:00
2020-01-29 22:22:53 +01:00
STEP :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : fitbit_data
2020-01-29 22:22:53 +01:00
DAY_SEGMENTS : *day_segments
2020-06-24 19:33:58 +02:00
EXCLUDE_SLEEP :
2020-06-24 19:40:15 +02:00
EXCLUDE : False
2020-06-24 19:33:58 +02:00
TYPE : FIXED # FIXED OR FITBIT_BASED (CONFIGURE FITBIT's SLEEP DB_TABLE)
FIXED :
START : "23:00"
END : "07:00"
2020-04-03 23:03:45 +02:00
FEATURES :
2020-01-29 22:22:53 +01:00
ALL_STEPS : [ "sumallsteps" , "maxallsteps" , "minallsteps" , "avgallsteps" , "stdallsteps" ]
2020-06-26 23:33:30 +02:00
SEDENTARY_BOUT : [ "countepisode" , "sumduration" , "maxduration" , "minduration" , "avgduration" , "stdduration" ]
ACTIVE_BOUT : [ "countepisode" , "sumduration" , "maxduration" , "minduration" , "avgduration" , "stdduration" ]
2020-02-10 22:45:34 +01:00
THRESHOLD_ACTIVE_BOUT : 10 # steps
2020-06-26 23:33:30 +02:00
INCLUDE_ZERO_STEP_ROWS : False
2020-03-09 18:32:14 +01:00
2020-05-15 23:51:00 +02:00
SLEEP :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE : fitbit_data
2020-05-15 23:51:00 +02:00
DAY_SEGMENTS : *day_segments
SLEEP_TYPES : [ "main" , "nap" , "all" ]
2020-06-13 00:44:05 +02:00
SUMMARY_FEATURES : [ "sumdurationafterwakeup" , "sumdurationasleep" , "sumdurationawake" , "sumdurationtofallasleep" , "sumdurationinbed" , "avgefficiency" , "countepisode" ]
2020-05-15 23:51:00 +02:00
2020-04-13 19:24:52 +02:00
WIFI :
2020-06-23 17:33:34 +02:00
COMPUTE : False
2020-07-24 22:35:41 +02:00
DB_TABLE :
VISIBLE_ACCESS_POINTS : "wifi" # if you only have a CONNECTED_ACCESS_POINTS table, set this value to ""
CONNECTED_ACCESS_POINTS : "sensor_wifi" # if you only have a VISIBLE_ACCESS_POINTS table, set this value to ""
2020-04-13 19:24:52 +02:00
DAY_SEGMENTS : *day_segments
FEATURES : [ "countscans" , "uniquedevices" , "countscansmostuniquedevice" ]
2020-06-19 07:27:28 +02:00
CONVERSATION :
2020-06-23 17:33:34 +02:00
COMPUTE : False
DB_TABLE :
ANDROID : plugin_studentlife_audio_android
IOS : plugin_studentlife_audio
2020-06-19 07:27:28 +02:00
DAY_SEGMENTS : *day_segments
FEATURES : [ "minutessilence" , "minutesnoise" , "minutesvoice" , "minutesunknown" , "sumconversationduration" , "avgconversationduration" ,
"sdconversationduration" , "minconversationduration" , "maxconversationduration" , "timefirstconversation" , "timelastconversation" , "sumenergy" ,
"avgenergy" , "sdenergy" , "minenergy" , "maxenergy" , "silencesensedfraction" , "noisesensedfraction" ,
"voicesensedfraction" , "unknownsensedfraction" , "silenceexpectedfraction" , "noiseexpectedfraction" , "voiceexpectedfraction" ,
2020-06-24 23:03:14 +02:00
"unknownexpectedfraction" , "countconversation" ]
2020-06-19 07:27:28 +02:00
RECORDINGMINUTES : 1
PAUSEDMINUTES : 3
2020-07-22 22:47:32 +02:00
### Visualizations ################################################################
HEATMAP_FEATURES_CORRELATIONS :
PLOT : False
MIN_ROWS_RATIO : 0.5
MIN_VALID_HOURS_PER_DAY : *min_valid_hours_per_day
2020-07-27 02:11:25 +02:00
MIN_VALID_BINS_PER_HOUR : *min_valid_bins_per_hour
2020-07-22 22:47:32 +02:00
PHONE_FEATURES : [ accelerometer, activity_recognition, applications_foreground, battery, calls_incoming, calls_missed, calls_outgoing, conversation, light, location_doryab, messages_received, messages_sent, screen]
FITBIT_FEATURES : [ fitbit_heartrate, fitbit_step, fitbit_sleep]
CORR_THRESHOLD : 0.1
2020-07-23 02:00:14 +02:00
CORR_METHOD : "pearson" # choose from {"pearson", "kendall", "spearman"}
2020-07-22 22:47:32 +02:00
HISTOGRAM_VALID_SENSED_HOURS :
PLOT : False
MIN_VALID_HOURS_PER_DAY : *min_valid_hours_per_day
2020-07-27 02:11:25 +02:00
MIN_VALID_BINS_PER_HOUR : *min_valid_bins_per_hour
2020-07-22 22:47:32 +02:00
HEATMAP_DAYS_BY_SENSORS :
PLOT : False
MIN_VALID_HOURS_PER_DAY : *min_valid_hours_per_day
2020-07-27 02:11:25 +02:00
MIN_VALID_BINS_PER_HOUR : *min_valid_bins_per_hour
2020-07-22 22:47:32 +02:00
EXPECTED_NUM_OF_DAYS : -1
2020-08-03 21:19:45 +02:00
DB_TABLES : [ accelerometer, applications_foreground, battery, bluetooth, calls, light, locations, messages, screen, wifi, sensor_wifi, plugin_google_activity_recognition, plugin_ios_activity_recognition, plugin_studentlife_audio_android, plugin_studentlife_audio]
2020-07-22 22:47:32 +02:00
HEATMAP_SENSED_BINS :
PLOT : False
BIN_SIZE : *bin_size
OVERALL_COMPLIANCE_HEATMAP :
PLOT : False
2020-07-24 18:58:48 +02:00
ONLY_SHOW_VALID_DAYS : False
EXPECTED_NUM_OF_DAYS : -1
2020-07-22 22:47:32 +02:00
BIN_SIZE : *bin_size
MIN_VALID_HOURS_PER_DAY : *min_valid_hours_per_day
2020-07-27 02:11:25 +02:00
MIN_VALID_BINS_PER_HOUR : *min_valid_bins_per_hour
2020-07-22 22:47:32 +02:00