├── models └── .gitkeep ├── notebooks └── .gitkeep ├── reports └── .gitkeep ├── src ├── __init__.py ├── data │ ├── .gitkeep │ ├── streams │ │ └── mutations │ │ │ ├── fitbit │ │ │ └── add_zero_timestamp.py │ │ │ └── phone │ │ │ └── aware │ │ │ ├── bluetooth_encoding.R │ │ │ ├── applications_foreground_encoding.R │ │ │ ├── keyboard_encoding.R │ │ │ ├── battery_ios_unification.R │ │ │ └── screen_ios_unification.R │ ├── workflow_example │ │ ├── download_demographic_data.R │ │ └── download_target_data.R │ └── phone_yielded_timestamps.R ├── features │ ├── .gitkeep │ ├── phone_locations │ │ └── barnett │ │ │ └── library │ │ │ ├── MaxDiam.R │ │ │ ├── MaxRadius.R │ │ │ ├── MinsMissing.R │ │ │ ├── DistanceTravelled.R │ │ │ ├── AvgFlightDur.R │ │ │ ├── AvgFlightLen.R │ │ │ ├── ExtractTimePeriod.R │ │ │ ├── Collapse2Pause.R │ │ │ ├── StdFlightDur.R │ │ │ ├── MaxHomeDist.R │ │ │ ├── ProbPause.R │ │ │ ├── StdFlightLen.R │ │ │ ├── LocationAt.R │ │ │ ├── SigLocsVisited.R │ │ │ ├── Hometime.R │ │ │ ├── MobmatQualityOK.R │ │ │ ├── plotlimits.R │ │ │ ├── SigLocEntropy.R │ │ │ ├── LatLong2XY.R │ │ │ └── ProgressBar.R │ ├── phone_calls │ │ └── episodes │ │ │ └── calls_episodes.py │ └── utils │ │ ├── join_features_from_providers.R │ │ └── merge_sensor_features_for_individual_participants.R ├── models │ ├── .gitkeep │ └── workflow_example │ │ └── merge_features_and_targets_for_individual_model.py └── visualization │ ├── .gitkeep │ └── __init__.py ├── tests ├── .gitignore └── data │ ├── external │ ├── aware_csv │ │ ├── .gitkeep │ │ └── fitbit_steps_summary_raw.csv │ ├── timesegments_frequency.csv │ ├── timesegments_periodic.csv │ ├── participant_files │ │ ├── ios.yaml │ │ ├── fitbit.yaml │ │ ├── empatica.yaml │ │ ├── android.yaml │ │ └── empty.yaml │ └── timesegments_event.csv │ ├── manual │ └── aware_csv │ │ ├── .gitkeep │ │ ├── fitbit_steps_summary_raw.csv │ │ ├── fitbit_heartrate_summary_raw.csv │ │ ├── fitbit_sleep_summary_raw.csv │ │ └── fitbit_sleep_intraday_raw.csv │ └── processed │ └── features │ ├── mtz_event │ ├── ios │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ ├── fitbit_heartrate_intraday.csv │ │ ├── phone_battery.csv │ │ ├── phone_activity_recognition.csv │ │ └── phone_screen.csv │ ├── android │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_heartrate_intraday.csv │ │ ├── phone_battery.csv │ │ ├── phone_activity_recognition.csv │ │ └── phone_screen.csv │ ├── empatica │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── empty │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ └── fitbit │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_keyboard.csv │ │ ├── phone_messages.csv │ │ └── fitbit_steps_summary.csv │ ├── stz_event │ ├── ios │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ ├── fitbit_heartrate_intraday.csv │ │ ├── phone_battery.csv │ │ ├── phone_activity_recognition.csv │ │ └── phone_screen.csv │ ├── android │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_heartrate_intraday.csv │ │ ├── phone_battery.csv │ │ ├── phone_activity_recognition.csv │ │ └── phone_screen.csv │ ├── empatica │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── fitbit_steps_summary copy.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── empty │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ └── fitbit │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_keyboard.csv │ │ ├── phone_messages.csv │ │ └── fitbit_steps_summary.csv │ ├── mtz_frequency │ ├── empty │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── ios │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── android │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── fitbit_heartrate_intraday.csv │ │ └── phone_screen.csv │ ├── empatica │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ └── fitbit │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_steps_summary.csv │ ├── mtz_periodic │ ├── empty │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── fitbit │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_messages.csv │ │ └── phone_keyboard.csv │ ├── ios │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_keyboard.csv │ │ ├── phone_messages.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── android │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── fitbit_steps_summary.csv │ │ └── fitbit_heartrate_intraday.csv │ └── empatica │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_keyboard.csv │ │ ├── phone_messages.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── stz_frequency │ ├── empty │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── ios │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ ├── android │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── fitbit_heartrate_intraday.csv │ │ └── phone_screen.csv │ ├── empatica │ │ ├── .gitkeep │ │ ├── fitbit_data_yield.csv │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── fitbit_steps_summary.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_heartrate_intraday.csv │ └── fitbit │ │ ├── .gitkeep │ │ ├── phone_data_yield.csv │ │ ├── phone_wifi_visible.csv │ │ ├── phone_wifi_connected.csv │ │ ├── phone_light.csv │ │ ├── phone_battery.csv │ │ ├── phone_screen.csv │ │ ├── phone_activity_recognition.csv │ │ ├── phone_messages.csv │ │ ├── phone_keyboard.csv │ │ └── fitbit_steps_summary.csv │ └── stz_periodic │ ├── empty │ ├── .gitkeep │ ├── phone_data_yield.csv │ ├── fitbit_data_yield.csv │ ├── phone_wifi_visible.csv │ ├── phone_wifi_connected.csv │ ├── phone_light.csv │ ├── fitbit_steps_summary.csv │ ├── phone_battery.csv │ ├── phone_screen.csv │ ├── phone_activity_recognition.csv │ ├── phone_messages.csv │ ├── phone_keyboard.csv │ └── fitbit_heartrate_intraday.csv │ ├── fitbit │ ├── .gitkeep │ ├── phone_data_yield.csv │ ├── phone_wifi_visible.csv │ ├── phone_wifi_connected.csv │ ├── phone_light.csv │ ├── phone_battery.csv │ ├── phone_screen.csv │ ├── phone_activity_recognition.csv │ ├── phone_messages.csv │ └── phone_keyboard.csv │ ├── ios │ ├── .gitkeep │ ├── fitbit_data_yield.csv │ ├── phone_wifi_visible.csv │ ├── phone_light.csv │ ├── fitbit_steps_summary.csv │ ├── phone_keyboard.csv │ ├── phone_messages.csv │ └── fitbit_heartrate_intraday.csv │ ├── android │ ├── .gitkeep │ ├── fitbit_data_yield.csv │ ├── fitbit_steps_summary.csv │ └── fitbit_heartrate_intraday.csv │ └── empatica │ ├── .gitkeep │ ├── fitbit_data_yield.csv │ ├── phone_data_yield.csv │ ├── phone_wifi_visible.csv │ ├── phone_wifi_connected.csv │ ├── phone_light.csv │ ├── fitbit_steps_summary.csv │ ├── phone_battery.csv │ ├── phone_screen.csv │ ├── phone_activity_recognition.csv │ ├── phone_keyboard.csv │ ├── phone_messages.csv │ └── fitbit_heartrate_intraday.csv ├── data └── external │ ├── .gitkeep │ ├── timesegments_frequency.csv │ ├── timesegments_default.csv │ └── timesegments_periodic.csv ├── references └── .gitkeep ├── docs ├── CNAME ├── javascripts │ └── extra.js ├── img │ ├── logo.png │ ├── files.png │ ├── dataflow.png │ ├── logos │ │ ├── cmu.png │ │ ├── uw.jpg │ │ ├── dbdp.png │ │ ├── monash.jpg │ │ ├── oulu.png │ │ ├── penn.png │ │ ├── pitt.png │ │ ├── helsinki.jpg │ │ ├── virginia.jpg │ │ └── manchester.png │ ├── h-data-yield.png │ ├── hm-sensor-rows.png │ ├── analysis_workflow.png │ ├── hm-phone-sensors.png │ ├── sleep_intraday_price.png │ ├── sleep_intraday_rapids.png │ ├── sleep_summary_rapids.png │ ├── hm-feature-correlations.png │ ├── testing_eventsegments_mtz.png │ ├── features_fitbit_sleep_intraday.png │ ├── hm-data-yield-participants-absolute-time.png │ └── hm-data-yield-participants-relative-time.png ├── overrides │ └── main.html ├── datastreams │ ├── aware-mysql.md │ ├── aware-influxdb.md │ ├── aware-micro-mysql.md │ └── fitbitjson-mysql.md └── developers │ └── remote-support.md ├── renv └── .gitignore ├── .Rprofile ├── example_profile ├── config.yaml └── exampleworkflow_timesegments.csv ├── rapids ├── tools ├── environment-from-history.yml ├── check_schema.py └── update_format_env.py └── rules └── renv.smk /models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /notebooks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /reports/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/external/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /references/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/features/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | www.rapids.science -------------------------------------------------------------------------------- /docs/javascripts/extra.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/visualization/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/visualization/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/external/aware_csv/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/manual/aware_csv/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /renv/.gitignore: -------------------------------------------------------------------------------- 1 | lock/ 2 | library/ 3 | python/ 4 | staging/ 5 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/android/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/android/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/android/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/android/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/external/timesegments_frequency.csv: -------------------------------------------------------------------------------- 1 | label,length 2 | thirtyminutes,30 -------------------------------------------------------------------------------- /tests/data/external/timesegments_frequency.csv: -------------------------------------------------------------------------------- 1 | label,length 2 | thirtyminutes,30 -------------------------------------------------------------------------------- /.Rprofile: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | options(renv.settings.snapshot.type = "all") 3 | -------------------------------------------------------------------------------- /docs/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logo.png -------------------------------------------------------------------------------- /docs/img/files.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/files.png -------------------------------------------------------------------------------- /docs/img/dataflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/dataflow.png -------------------------------------------------------------------------------- /docs/img/logos/cmu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/cmu.png -------------------------------------------------------------------------------- /docs/img/logos/uw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/uw.jpg -------------------------------------------------------------------------------- /data/external/timesegments_default.csv: -------------------------------------------------------------------------------- 1 | label,start_time,length 2 | daily,00:00:00,"23H 59M 59S" 3 | -------------------------------------------------------------------------------- /docs/img/h-data-yield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/h-data-yield.png -------------------------------------------------------------------------------- /docs/img/logos/dbdp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/dbdp.png -------------------------------------------------------------------------------- /docs/img/logos/monash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/monash.jpg -------------------------------------------------------------------------------- /docs/img/logos/oulu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/oulu.png -------------------------------------------------------------------------------- /docs/img/logos/penn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/penn.png -------------------------------------------------------------------------------- /docs/img/logos/pitt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/pitt.png -------------------------------------------------------------------------------- /docs/img/hm-sensor-rows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/hm-sensor-rows.png -------------------------------------------------------------------------------- /docs/img/logos/helsinki.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/helsinki.jpg -------------------------------------------------------------------------------- /docs/img/logos/virginia.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/virginia.jpg -------------------------------------------------------------------------------- /docs/img/analysis_workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/analysis_workflow.png -------------------------------------------------------------------------------- /docs/img/hm-phone-sensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/hm-phone-sensors.png -------------------------------------------------------------------------------- /docs/img/logos/manchester.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/logos/manchester.png -------------------------------------------------------------------------------- /docs/img/sleep_intraday_price.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/sleep_intraday_price.png -------------------------------------------------------------------------------- /docs/img/sleep_intraday_rapids.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/sleep_intraday_rapids.png -------------------------------------------------------------------------------- /docs/img/sleep_summary_rapids.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/sleep_summary_rapids.png -------------------------------------------------------------------------------- /docs/img/hm-feature-correlations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/hm-feature-correlations.png -------------------------------------------------------------------------------- /docs/img/testing_eventsegments_mtz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/testing_eventsegments_mtz.png -------------------------------------------------------------------------------- /example_profile/config.yaml: -------------------------------------------------------------------------------- 1 | directory: ./ 2 | configfile: ./example_profile/example_config.yaml 3 | snakefile: ./example_profile/Snakefile -------------------------------------------------------------------------------- /docs/img/features_fitbit_sleep_intraday.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/features_fitbit_sleep_intraday.png -------------------------------------------------------------------------------- /example_profile/exampleworkflow_timesegments.csv: -------------------------------------------------------------------------------- 1 | label,start_time,length,repeats_on,repeats_value 2 | daily,00:00:00,23H 59M 59S,every_day,0 -------------------------------------------------------------------------------- /docs/img/hm-data-yield-participants-absolute-time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/hm-data-yield-participants-absolute-time.png -------------------------------------------------------------------------------- /docs/img/hm-data-yield-participants-relative-time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carissalow/rapids/HEAD/docs/img/hm-data-yield-participants-relative-time.png -------------------------------------------------------------------------------- /rapids: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | from sys import argv 3 | import subprocess 4 | subprocess.run(" ".join(["snakemake", "-R", "`snakemake --list-params-changes`"] + argv[1:]), shell=True) -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/MaxDiam.R: -------------------------------------------------------------------------------- 1 | MaxDiam <- 2 | function(mat){ 3 | IDmv=which(mat[,1]<=2) 4 | if(length(IDmv)<2){return(0)} 5 | return(max(dist(mat[IDmv,2:3]))) 6 | } 7 | -------------------------------------------------------------------------------- /tests/data/manual/aware_csv/fitbit_steps_summary_raw.csv: -------------------------------------------------------------------------------- 1 | test_time,device_id,steps 2 | Fri 00:00:00,fitbit,1379 3 | Sat 00:00:00,fitbit,1021 4 | Sun 00:00:00,fitbit,960 5 | Mon 00:00:00,fitbit,1006 6 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/MaxRadius.R: -------------------------------------------------------------------------------- 1 | MaxRadius <- 2 | function(mat){ 3 | cent=colMeans(mat,na.rm=TRUE) 4 | return(max(apply(mat,1,function(x) sqrt((x[1]-cent[1])^2+(x[2]-cent[2])^2)),na.rm=TRUE)) 5 | } 6 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/MinsMissing.R: -------------------------------------------------------------------------------- 1 | MinsMissing <- 2 | function(mat){ 3 | tot=0 4 | for(i in 1:nrow(mat)){ 5 | if(mat[i,1]==4){ 6 | tot = tot+mat[i,7]-mat[i,4] 7 | } 8 | } 9 | return(tot/60) 10 | } 11 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/external/timesegments_periodic.csv: -------------------------------------------------------------------------------- 1 | label,start_time,length,repeats_on,repeats_value 2 | morning,06:00:00,5H 59M 59S,every_day,0 3 | daily,00:00:00,23H 59M 59S,every_day,0 4 | threeday,00:00:00,71H 59M 59S,every_day,0 5 | weekend,00:00:00,71H 59M 59S,wday,5 6 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/android/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/android/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/android/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/android/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/DistanceTravelled.R: -------------------------------------------------------------------------------- 1 | DistanceTravelled <- 2 | function(mat){ 3 | dt=0 4 | for(i in 1:nrow(mat)){ 5 | if(mat[i,1]==1){ 6 | dt=dt+sqrt((mat[i,5]-mat[i,2])^2+(mat[i,6]-mat[i,3])^2) 7 | } 8 | } 9 | return(dt) 10 | } 11 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/AvgFlightDur.R: -------------------------------------------------------------------------------- 1 | AvgFlightDur <- 2 | function(mat){ 3 | num=0 4 | tot=0 5 | for(i in 1:nrow(mat)){ 6 | if(mat[i,1]==1){ 7 | tot=tot+mat[i,7]-mat[i,4] 8 | num=num+1 9 | } 10 | } 11 | if(num==0){return(0)} 12 | return(tot/num) 13 | } 14 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_minlux","phone_light_rapids_stdlux","phone_light_rapids_medianlux","phone_light_rapids_maxlux","phone_light_rapids_count","phone_light_rapids_avglux" 2 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/AvgFlightLen.R: -------------------------------------------------------------------------------- 1 | AvgFlightLen <- 2 | function(mat){ 3 | num=0 4 | tot=0 5 | for(i in 1:nrow(mat)){ 6 | if(mat[i,1]==1){ 7 | tot=tot+sqrt((mat[i,5]-mat[i,2])^2+(mat[i,6]-mat[i,3])^2) 8 | num=num+1 9 | } 10 | } 11 | if(num==0){return(0)} 12 | return(tot/num) 13 | } 14 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/ExtractTimePeriod.R: -------------------------------------------------------------------------------- 1 | ExtractTimePeriod <- 2 | function(tstart,tend,out){ 3 | tstart = as.POSIXct(tstart) 4 | tend = as.POSIXct(tend) 5 | INDs=intersect(which(apply(out[,c(4,7)],1,function(x) max(x,na.rm=T))>=tstart),which(out[,4]<=tend)) 6 | suboutmat=out[INDs,] 7 | return(suboutmat) 8 | } 9 | -------------------------------------------------------------------------------- /tests/data/external/participant_files/ios.yaml: -------------------------------------------------------------------------------- 1 | PHONE: 2 | DEVICE_IDS: [ios] 3 | PLATFORMS: [ios] 4 | LABEL: ios 5 | START_DATE: 2020-03-06 6 | END_DATE: 2020-11-03 7 | FITBIT: 8 | DEVICE_IDS: 9 | LABEL: 10 | START_DATE: 11 | END_DATE: 12 | EMPATICA: 13 | DEVICE_IDS: 14 | LABEL: 15 | START_DATE: 16 | END_DATE: 17 | -------------------------------------------------------------------------------- /tests/data/external/participant_files/fitbit.yaml: -------------------------------------------------------------------------------- 1 | PHONE: 2 | DEVICE_IDS: 3 | PLATFORMS: 4 | LABEL: 5 | START_DATE: 6 | END_DATE: 7 | FITBIT: 8 | DEVICE_IDS: [fitbit] 9 | LABEL: fitbit 10 | START_DATE: 2020-03-06 11 | END_DATE: 2020-11-03 12 | EMPATICA: 13 | DEVICE_IDS: 14 | LABEL: 15 | START_DATE: 16 | END_DATE: 17 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/Collapse2Pause.R: -------------------------------------------------------------------------------- 1 | Collapse2Pause <- 2 | function(mat){ 3 | cent=colMeans(mat[,2:3],na.rm=TRUE) 4 | if(!is.na(mat[nrow(mat),7])){ 5 | return(c(2,cent[1],cent[2],mat[1,4],NA,NA,mat[nrow(mat),7])) 6 | }else{ 7 | return(c(2,cent[1],cent[2],mat[1,4],NA,NA,mat[nrow(mat),4])) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/StdFlightDur.R: -------------------------------------------------------------------------------- 1 | StdFlightDur <- 2 | function(mat){ 3 | ID1=which(mat[,1]==1) 4 | if(length(ID1)==0){return(0)} 5 | try1=try(sd(as.numeric(mat[ID1,7]-mat[ID1,4])),silent=TRUE) 6 | if(class(try1) == "try-error" || is.na(try1)){ 7 | return(0) 8 | }else{ 9 | return(try1) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/data/external/participant_files/empatica.yaml: -------------------------------------------------------------------------------- 1 | PHONE: 2 | DEVICE_IDS: 3 | PLATFORMS: 4 | LABEL: 5 | START_DATE: 6 | END_DATE: 7 | FITBIT: 8 | DEVICE_IDS: 9 | LABEL: 10 | START_DATE: 11 | END_DATE: 12 | EMPATICA: 13 | DEVICE_IDS: [empatica] 14 | LABEL: empatica 15 | START_DATE: 2020-03-06 16 | END_DATE: 2020-11-03 17 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/MaxHomeDist.R: -------------------------------------------------------------------------------- 1 | MaxHomeDist <- 2 | function(mat,homex,homey){ 3 | IDmv=which(mat[,1]<=2) 4 | if(length(IDmv)==0){return(NA)} 5 | dfhome=rep(NA,length(IDmv)) 6 | for(i in 1:length(IDmv)){ 7 | dfhome[i]=sqrt((mat[IDmv[i],2]-homex)^2+(mat[IDmv[i],3]-homey)^2) 8 | } 9 | return(max(dfhome)) 10 | } 11 | -------------------------------------------------------------------------------- /tests/data/external/participant_files/android.yaml: -------------------------------------------------------------------------------- 1 | PHONE: 2 | DEVICE_IDS: [android] 3 | PLATFORMS: [android] 4 | LABEL: android 5 | START_DATE: 2020-03-06 6 | END_DATE: 2020-11-03 7 | FITBIT: 8 | DEVICE_IDS: 9 | LABEL: 10 | START_DATE: 11 | END_DATE: 12 | EMPATICA: 13 | DEVICE_IDS: 14 | LABEL: 15 | START_DATE: 16 | END_DATE: 17 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/ProbPause.R: -------------------------------------------------------------------------------- 1 | ProbPause <- 2 | function(mat){ 3 | tpause = 0 4 | tflight = 0 5 | for(i in 1:nrow(mat)){ 6 | if(mat[i,1]==1){ 7 | tflight = tflight + mat[i,7]-mat[i,4] 8 | } 9 | if(mat[i,1]==2){ 10 | tpause = tpause + mat[i,7]-mat[i,4] 11 | } 12 | } 13 | return(tpause/(tpause+tflight)) 14 | } 15 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_avgsumsteps","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_mediansumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/android/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/android/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/fitbit_steps_summary copy.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/android/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/android/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgsumsteps" 2 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/StdFlightLen.R: -------------------------------------------------------------------------------- 1 | StdFlightLen <- 2 | function(mat){ 3 | ID1=which(mat[,1]==1) 4 | if(length(ID1)<=1){return(0)} 5 | try1=try(sd(as.numeric(sqrt((mat[ID1,6]-mat[ID1,3])^2+(mat[ID1,5]-mat[ID1,2])^2))),silent=TRUE) 6 | if(class(try1) == "try-error" || is.na(try1)){ 7 | return(0) 8 | }else{ 9 | return(try1) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countdischarge","phone_battery_rapids_countcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countdischarge","phone_battery_rapids_countcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countdischarge","phone_battery_rapids_countcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countdischarge","phone_battery_rapids_maxconsumptionrate" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countdischarge","phone_battery_rapids_maxconsumptionrate" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countdischarge","phone_battery_rapids_maxconsumptionrate" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_countdischarge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countcharge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_countdischarge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countcharge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_countdischarge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_countdischarge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_countdischarge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/external/aware_csv/fitbit_steps_summary_raw.csv: -------------------------------------------------------------------------------- 1 | timestamp,device_id,steps,local_date_time 2 | 0,fitbit,1379,2020-03-06 00:00:00 3 | 0,fitbit,1021,2020-03-07 00:00:00 4 | 0,fitbit,960,2020-03-08 00:00:00 5 | 0,fitbit,1006,2020-03-09 00:00:00 6 | 0,fitbit,1379,2020-10-30 00:00:00 7 | 0,fitbit,1021,2020-10-31 00:00:00 8 | 0,fitbit,960,2020-11-01 00:00:00 9 | 0,fitbit,1006,2020-11-02 00:00:00 10 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationdischarge" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_sumdurationcharge","phone_battery_rapids_countdischarge","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_countcharge" 2 | -------------------------------------------------------------------------------- /tests/data/external/participant_files/empty.yaml: -------------------------------------------------------------------------------- 1 | PHONE: 2 | DEVICE_IDS: [empty] 3 | PLATFORMS: [android, ios] 4 | LABEL: empty 5 | START_DATE: 2020-03-06 6 | END_DATE: 2020-11-03 7 | FITBIT: 8 | DEVICE_IDS: [empty] 9 | LABEL: empty 10 | START_DATE: 2020-03-06 11 | END_DATE: 2020-11-03 12 | EMPATICA: 13 | DEVICE_IDS: [empty] 14 | LABEL: empty 15 | START_DATE: 2020-03-06 16 | END_DATE: 2020-11-03 17 | -------------------------------------------------------------------------------- /src/features/phone_calls/episodes/calls_episodes.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | 3 | calls = pd.read_csv(snakemake.input["calls"]).rename(columns={"timestamp": "start_timestamp"}) 4 | calls["end_timestamp"] = calls["start_timestamp"] + calls["call_duration"] * 1000 5 | calls["episode_id"] = calls.index 6 | 7 | calls[["episode_id", "device_id", "call_type", "trace", "start_timestamp", "end_timestamp"]].to_csv(snakemake.output[0], index=False) 8 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/LocationAt.R: -------------------------------------------------------------------------------- 1 | LocationAt <- 2 | function(mat,tt){ 3 | for(i in 1:nrow(mat)){ 4 | if(mat[i,1]<=2){ 5 | if(mat[i,4]<=tt && mat[i,7]>=tt){ 6 | return(list('x'=mat[i,2],'y'=mat[i,3])) 7 | } 8 | }else if(mat[i,1]==3){ 9 | if(mat[i,4]==tt){ 10 | return(list('x'=mat[i,2],'y'=mat[i,3])) 11 | } 12 | } 13 | } 14 | return(NULL) 15 | } 16 | -------------------------------------------------------------------------------- /docs/overrides/main.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block disqus %} 4 | 5 | {% include "partials/integrations/utterances.html" %} 6 | {% endblock %} 7 | 8 | {% block outdated %} 9 | You're not viewing the latest stable version of RAPIDS. 10 | 11 | Click here to go to latest. 12 | 13 | {% endblock %} 14 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_maxdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_maxdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_maxdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_mindurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_avgdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_mindurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_avgdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" 2 | -------------------------------------------------------------------------------- /tools/environment-from-history.yml: -------------------------------------------------------------------------------- 1 | name: devtest 2 | channels: 3 | - defaults 4 | dependencies: 5 | - python=3.7 6 | - pandas=1.1.5 7 | - scipy=1.5.2 8 | - plotly=4.14.1 9 | - astropy=4.2 10 | - scikit-learn=0.23.2 11 | - xgboost=0.90 12 | - lightgbm=3.1.1 13 | - conda-forge::imbalanced-learn=0.6.2 14 | - pip=20.3.3 15 | - pip: 16 | - snakemake==5.30.2 17 | prefix: /usr/local/Caskroom/miniconda/base/envs/devtest 18 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/SigLocsVisited.R: -------------------------------------------------------------------------------- 1 | SigLocsVisited <- 2 | function(mat,slout,CENTERRAD){ 3 | places_visited = rep(0,nrow(slout)) 4 | for(i in 1:nrow(mat)){ 5 | if(mat[i,1]<=3){ 6 | for(j in 1:nrow(slout)){ 7 | if(sqrt((slout[j,1]-mat[i,2])^2 + (slout[j,2]-mat[i,3])^2)% 6 | mutate(bt_name = stringi::stri_encode(bt_name, to = "UTF-8")) 7 | 8 | return(phone_bluetooth) 9 | } 10 | 11 | main <- function(data, stream_parameters) { 12 | return(convert_encoding_to_utf8(data)) 13 | } -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/Hometime.R: -------------------------------------------------------------------------------- 1 | Hometime <- 2 | function(mat,slout,CENTERRAD){ 3 | IDhome=which(slout$home==1) 4 | xcenter=slout[IDhome,1] 5 | ycenter=slout[IDhome,2] 6 | tottime=0 7 | for(i in 1:nrow(mat)){ 8 | if(mat[i,1]==2 && sqrt((mat[i,2]-xcenter)^2+(mat[i,3]-ycenter)^2)% 6 | mutate(application_name = stringi::stri_encode(application_name, to = "UTF-8")) 7 | 8 | return(phone_applications_foreground) 9 | } 10 | 11 | main <- function(data, stream_parameters) { 12 | return(convert_encoding_to_utf8(data)) 13 | } -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",0.00681809581720049,0 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",0.00681809581720049,0 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",0.00681809581720049,0 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",0.00681809581720049,0 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",0.0128786254324898,0 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",0.0121210592305786,0 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/phone_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_data_yield_rapids_ratiovalidyieldedminutes","phone_data_yield_rapids_ratiovalidyieldedhours" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",0.0128786254324898,0 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",0.0121210592305786,0 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",0.00681809581720049,0 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",0.00681809581720049,0 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",0.00606052961528932,0 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",0.00606052961528932,0 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/fitbit_data_yield.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_data_yield_rapids_ratiovalidyieldedminutes","fitbit_data_yield_rapids_ratiovalidyieldedhours" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",0.00606052961528932,0 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",0.00606052961528932,0 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",13,7,2 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",13,7,2 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/phone_wifi_visible.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_visible_rapids_countscans","phone_wifi_visible_rapids_uniquedevices","phone_wifi_visible_rapids_countscansmostuniquedevice" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",13,7,2 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",13,7,2 4 | -------------------------------------------------------------------------------- /src/models/workflow_example/merge_features_and_targets_for_individual_model.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | import numpy as np 3 | 4 | index_columns = ["local_segment", "local_segment_label", "local_segment_start_datetime", "local_segment_end_datetime"] 5 | sensor_features = pd.read_csv(snakemake.input["cleaned_sensor_features"], index_col=index_columns) 6 | targets = pd.read_csv(snakemake.input["targets"], index_col=index_columns) 7 | 8 | data = pd.concat([sensor_features, targets[["target"]]], axis=1, join="inner") 9 | 10 | data.to_csv(snakemake.output[0], index=True) 11 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",13,7,4 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",13,7,4 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",13,7,4 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",13,7,4 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",13,7,4 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",13,7,4 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_wifi_connected.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_wifi_connected_rapids_countscans","phone_wifi_connected_rapids_uniquedevices","phone_wifi_connected_rapids_countscansmostuniquedevice" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",13,7,4 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",13,7,4 4 | -------------------------------------------------------------------------------- /src/features/utils/join_features_from_providers.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | 3 | library("tidyr") 4 | library("dplyr", warn.conflicts = F) 5 | 6 | location_features_files <- snakemake@input[["sensor_features"]] 7 | location_features <- setNames(data.frame(matrix(ncol = 1, nrow = 0)), c("local_segment")) 8 | 9 | 10 | for(location_features_file in location_features_files){ 11 | location_features <- merge(location_features, read.csv(location_features_file), all = TRUE) 12 | } 13 | 14 | write.csv(location_features %>% arrange(local_segment), snakemake@output[[1]], row.names = FALSE) -------------------------------------------------------------------------------- /src/data/workflow_example/download_demographic_data.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | library("dplyr", warn.conflicts = F) 3 | library(readr) 4 | library(stringr) 5 | library(yaml) 6 | 7 | 8 | participant_file <- snakemake@input[["participant_file"]] 9 | 10 | sensor_file <- snakemake@output[[1]] 11 | 12 | participant <- read_yaml(participant_file) 13 | record_id <- participant$PHONE$LABEL 14 | 15 | demographic_data = read.csv(snakemake@input[["data"]]) 16 | demographic_data = demographic_data[demographic_data$record_id == record_id, ] 17 | 18 | write_csv(demographic_data, sensor_file) 19 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/SigLocEntropy.R: -------------------------------------------------------------------------------- 1 | SigLocEntropy <- 2 | function(mat,slout,CENTERRAD){ 3 | tp = rep(0,nrow(slout)) 4 | for(i in 1:nrow(mat)){ 5 | if(mat[i,1]==2){ 6 | for(j in 1:nrow(slout)){ 7 | if(sqrt((slout[j,1]-mat[i,2])^2+(slout[j,2]-mat[i,3])^2)0){ 18 | tot=tot-p*log(p) 19 | } 20 | } 21 | return(tot) 22 | } 23 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength","phone_keyboard_rapids_averageinterkeydelay" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_lastmessagelength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_changeintextlengthmorethanone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_lastmessagelength","phone_keyboard_rapids_averageinterkeydelay" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_lastmessagelength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_maxtextlength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/external/timesegments_event.csv: -------------------------------------------------------------------------------- 1 | label,event_timestamp,length,shift,shift_direction,device_id 2 | beforeMarchEvent,1583625600000,22H,3H,-1,android 3 | beforeNovemberEvent,1604185200000,22H,3H,-1,android 4 | beforeMarchEvent,1583625600000,22H,3H,-1,ios 5 | beforeNovemberEvent,1604185200000,22H,3H,-1,ios 6 | beforeMarchEvent,1583625600000,22H,3H,-1,fitbit 7 | beforeNovemberEvent,1604185200000,22H,3H,-1,fitbit 8 | beforeMarchEvent,1583625600000,22H,3H,-1,empatica 9 | beforeNovemberEvent,1604185200000,22H,3H,-1,empatica 10 | beforeMarchEvent,1583625600000,22H,3H,-1,empty 11 | beforeNovemberEvent,1604185200000,22H,3H,-1,empty -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_lastmessagelength","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthequaltominusone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/fitbit/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_lastmessagelength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_sessioncount" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/phone_messages.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_messages_rapids_received_countmostfrequentcontact","phone_messages_rapids_received_count","phone_messages_rapids_received_distinctcontacts","phone_messages_rapids_received_timefirstmessage","phone_messages_rapids_received_timelastmessage","phone_messages_rapids_sent_countmostfrequentcontact","phone_messages_rapids_sent_count","phone_messages_rapids_sent_distinctcontacts","phone_messages_rapids_sent_timefirstmessage","phone_messages_rapids_sent_timelastmessage" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/fitbit/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/phone_keyboard.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_keyboard_rapids_averagesessionlength","phone_keyboard_rapids_sessioncount","phone_keyboard_rapids_changeintextlengthmorethanone","phone_keyboard_rapids_averageinterkeydelay","phone_keyboard_rapids_maxtextlength","phone_keyboard_rapids_changeintextlengthequaltominusone","phone_keyboard_rapids_changeintextlengthequaltoone","phone_keyboard_rapids_changeintextlengthlessthanminusone","phone_keyboard_rapids_totalkeyboardtouches","phone_keyboard_rapids_lastmessagelength" 2 | -------------------------------------------------------------------------------- /tests/data/manual/aware_csv/fitbit_sleep_intraday_raw.csv: -------------------------------------------------------------------------------- 1 | test_time,device_id,type_episode_id,duration,level,is_main_sleep,type 2 | Fri 11:00:00,fitbit,0,300,asleep,1,classic 3 | Fri 17:00:00,fitbit,1,14400,deep,1,stages 4 | Fri 21:00:00,fitbit,1,7200,wake,1,stages 5 | Fri 23:00:00,fitbit,1,7200,light,1,stages 6 | Sat 01:00:00,fitbit,2,3600,restless,0,classic 7 | Sat 02:00:00,fitbit,2,3600,asleep,0,classic 8 | Sat 13:00:00,fitbit,3,3600,restless,0,classic 9 | Sat 22:00:00,fitbit,4,3600,rem,1,stages 10 | Sat 23:00:00,fitbit,4,28800,deep,1,stages 11 | Sun 11:00:00,fitbit,5,32400,deep,1,stages 12 | Mon 06:00:00,fitbit,6,25200,deep,1,stages 13 | -------------------------------------------------------------------------------- /src/data/streams/mutations/phone/aware/keyboard_encoding.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | library("dplyr", warn.conflicts = FALSE) 3 | 4 | convert_encoding_to_utf8 <- function(phone_keyboard) { 5 | phone_keyboard <- phone_keyboard %>% 6 | mutate( 7 | package_name = stringi::stri_encode(package_name, to = "UTF-8"), 8 | before_text = stringi::stri_encode(before_text, to = "UTF-8"), 9 | current_text = stringi::stri_encode(current_text, to = "UTF-8") 10 | ) 11 | 12 | return(phone_keyboard) 13 | } 14 | 15 | main <- function(data, stream_parameters) { 16 | return(convert_encoding_to_utf8(data)) 17 | } -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_count","phone_light_rapids_maxlux","phone_light_rapids_minlux","phone_light_rapids_avglux","phone_light_rapids_medianlux","phone_light_rapids_stdlux" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",9,76000,128,23347.3333333333,24510,25775.0912704495 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",8,76000,128,22264.5,12930,27335.013188217 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/phone_light.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_light_rapids_count","phone_light_rapids_maxlux","phone_light_rapids_minlux","phone_light_rapids_avglux","phone_light_rapids_medianlux","phone_light_rapids_stdlux" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",9,76000,128,23347.3333333333,24510,25775.0912704495 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",8,76000,128,22264.5,12930,27335.013188217 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/fitbit/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_annualizedvolatilitysteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdvolatilitysteps","fitbit_steps_summary_rapids_maxvolatilitysteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_avgsumsteps","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_minvolatilitysteps","fitbit_steps_summary_rapids_medianvolatilitysteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgvolatilitysteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/fitbit/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_annualizedvolatilitysteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdvolatilitysteps","fitbit_steps_summary_rapids_maxvolatilitysteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_avgsumsteps","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_minvolatilitysteps","fitbit_steps_summary_rapids_medianvolatilitysteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgvolatilitysteps" 2 | -------------------------------------------------------------------------------- /tools/check_schema.py: -------------------------------------------------------------------------------- 1 | # Adapted from https://bitbucket.org/snakemake/snakemake/pull-requests/291/schema-based-validation/diff 2 | from jsonschema import Draft7Validator 3 | import yaml 4 | import collections 5 | class OrderedLoader(yaml.Loader): 6 | pass 7 | 8 | def construct_mapping(loader, node): 9 | loader.flatten_mapping(node) 10 | return collections.OrderedDict(loader.construct_pairs(node)) 11 | 12 | OrderedLoader.add_constructor(yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, construct_mapping) 13 | with open("tools/config.schema.yaml") as f: 14 | data = yaml.load(f, OrderedLoader) 15 | 16 | Draft7Validator.check_schema(data) 17 | print("Schema is OK") -------------------------------------------------------------------------------- /rules/renv.smk: -------------------------------------------------------------------------------- 1 | ## renv_install: installs renv onto machine 2 | rule renv_install: 3 | shell: 4 | "R -e 'if (!requireNamespace(\"renv\", quietly = TRUE)) install.packages(\"renv\", repos=\"http://cran.us.r-project.org\")'" 5 | 6 | ## renv_install: initialize a renv environment for this project 7 | rule renv_init: 8 | shell: 9 | "R -e 'renv::init()'" 10 | 11 | ## renv_snap : Look for new R packages in files & archives them 12 | rule renv_snap: 13 | shell: 14 | "R -e 'renv::snapshot()'" 15 | 16 | ## renv_restore: Installs archived packages onto a new machine 17 | rule renv_restore: 18 | shell: 19 | "R -e 'renv::restore()'" 20 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/fitbit/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_annualizedvolatilitysteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdvolatilitysteps","fitbit_steps_summary_rapids_maxvolatilitysteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_avgsumsteps","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_minvolatilitysteps","fitbit_steps_summary_rapids_medianvolatilitysteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgvolatilitysteps" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/fitbit/fitbit_steps_summary.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_steps_summary_rapids_annualizedvolatilitysteps","fitbit_steps_summary_rapids_mediansumsteps","fitbit_steps_summary_rapids_stdvolatilitysteps","fitbit_steps_summary_rapids_maxvolatilitysteps","fitbit_steps_summary_rapids_stdsumsteps","fitbit_steps_summary_rapids_avgsumsteps","fitbit_steps_summary_rapids_minsumsteps","fitbit_steps_summary_rapids_minvolatilitysteps","fitbit_steps_summary_rapids_medianvolatilitysteps","fitbit_steps_summary_rapids_maxsumsteps","fitbit_steps_summary_rapids_avgvolatilitysteps" 2 | -------------------------------------------------------------------------------- /docs/datastreams/aware-mysql.md: -------------------------------------------------------------------------------- 1 | # `aware_mysql` 2 | 3 | This [data stream](../../datastreams/data-streams-introduction) handles iOS and Android sensor data collected with the [AWARE Framework](https://awareframework.com/) and stored in a MySQL database. 4 | 5 | ## Container 6 | A MySQL database with a table per sensor, each containing the data for all participants. This is the default database created by the old PHP AWARE server (as opposed to the new JavaScript Micro server). 7 | 8 | The script to connect and download data from this container is at: 9 | ```bash 10 | src/data/streams/aware_mysql/container.R 11 | ``` 12 | 13 | ## Format 14 | 15 | --8<---- "docs/snippets/aware_format.md" 16 | -------------------------------------------------------------------------------- /docs/datastreams/aware-influxdb.md: -------------------------------------------------------------------------------- 1 | # `aware_influxdb (beta)` 2 | 3 | !!! warning 4 | This data stream is being released in beta while we test it thoroughly. 5 | 6 | This [data stream](../../datastreams/data-streams-introduction) handles iOS and Android sensor data collected with the [AWARE Framework](https://awareframework.com/) and stored in an InfluxDB database. 7 | 8 | ## Container 9 | An InfluxDB database with a table per sensor, each containing the data for all participants. 10 | 11 | The script to connect and download data from this container is at: 12 | ```bash 13 | src/data/streams/aware_influxdb/container.R 14 | ``` 15 | 16 | ## Format 17 | 18 | --8<---- "docs/snippets/aware_format.md" 19 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/LatLong2XY.R: -------------------------------------------------------------------------------- 1 | LatLong2XY <- 2 | function(lat_v,lon_v,R=6.371*10^6){ 3 | th0 = min(lon_v) 4 | th1 = max(lon_v) 5 | ph0 = min(lat_v) 6 | ph1 = max(lat_v) 7 | d1 = 2*pi*R*((ph1-ph0)*2*pi/360)/(2*pi) 8 | d2 = 2*pi*(R*sin(pi/2-ph1*2*pi/360))*((th1-th0)*2*pi/360)/(2*pi) 9 | d3 = 2*pi*(R*sin(pi/2-ph0*2*pi/360))*((th1-th0)*2*pi/360)/(2*pi) 10 | x_v=rep(0,length(lon_v)) 11 | y_v=rep(0,length(lat_v)) 12 | for(i in 1:length(lat_v)){ 13 | w1=(lat_v[i]-ph0)/(ph1-ph0) 14 | w2=(lon_v[i]-th0)/(th1-th0) 15 | x_v[i]=w1*abs(d3-d2)/2+w2*(d3*(1-w1)+d2*w1) 16 | y_v[i]=w1*d1*sin(acos(abs((d3-d2)/(2*d1)))) 17 | } 18 | return(list("x_v"=x_v,"y_v"=y_v)) 19 | } 20 | -------------------------------------------------------------------------------- /docs/datastreams/aware-micro-mysql.md: -------------------------------------------------------------------------------- 1 | # `aware_micro_mysql` 2 | 3 | This [data stream](../../datastreams/data-streams-introduction) handles iOS and Android sensor data collected with the [AWARE Framework's](https://awareframework.com/) [AWARE Micro](https://github.com/denzilferreira/aware-micro) server and stored in a MySQL database. 4 | 5 | ## Container 6 | A MySQL database with a table per sensor, each containing the data for all participants. Sensor data is stored in a JSON field within each table called `data` 7 | 8 | The script to connect and download data from this container is at: 9 | ```bash 10 | src/data/streams/aware_micro_mysql/container.R 11 | ``` 12 | 13 | ## Format 14 | 15 | --8<---- "docs/snippets/aware_format.md" -------------------------------------------------------------------------------- /src/data/phone_yielded_timestamps.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | library("dplyr", warn.conflicts = F) 3 | library(readr) 4 | library(tidyr) 5 | library(purrr) 6 | options(scipen=999) 7 | 8 | all_sensors = snakemake@input[["all_sensors"]] 9 | 10 | sensor_timestamps <- tibble(files = all_sensors) %>% 11 | mutate(timestamps = map(files,~ read_csv(.,col_types = cols_only(timestamp = col_double(), device_id = col_character()))), 12 | sensor = row_number(), 13 | files = NULL) %>% 14 | unnest(timestamps) %>% 15 | mutate(timestamp = (timestamp %/% 1000) * 1000) %>% 16 | distinct(timestamp, .keep_all = TRUE) %>% 17 | arrange(timestamp) 18 | 19 | write.csv(sensor_timestamps, snakemake@output[[1]], row.names = FALSE) -------------------------------------------------------------------------------- /src/features/utils/merge_sensor_features_for_individual_participants.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | 3 | library("dplyr", warn.conflicts = F) 4 | library("purrr") 5 | 6 | feature_files <- snakemake@input[["feature_files"]] 7 | 8 | features_for_individual_model <- feature_files %>% 9 | map(read.csv, stringsAsFactors = F, colClasses = c(local_segment = "character", local_segment_label = "character", local_segment_start_datetime="character", local_segment_end_datetime="character")) %>% 10 | reduce(full_join, by=c("local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime")) %>% 11 | arrange(local_segment) 12 | 13 | write.csv(features_for_individual_model, snakemake@output[[1]], row.names = FALSE) 14 | -------------------------------------------------------------------------------- /docs/developers/remote-support.md: -------------------------------------------------------------------------------- 1 | # Remote Support 2 | 3 | We use the Live Share extension of Visual Studio Code to debug bugs when sharing data or database credentials is not possible. 4 | 5 | 1. Install [Visual Studio Code](https://code.visualstudio.com/) 6 | 2. Open your RAPIDS root folder in a new VSCode window 7 | 3. Open a new terminal in Visual Studio Code `Terminal > New terminal` 8 | 4. Install the [Live Share extension pack](https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare-pack) 9 | 5. Press ++ctrl+p++ or ++cmd+p++ and run this command: 10 | 11 | ```bash 12 | >live share: start collaboration session 13 | ``` 14 | 15 | 6. Follow the instructions and share the session link you receive 16 | -------------------------------------------------------------------------------- /src/data/streams/mutations/phone/aware/battery_ios_unification.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | library("dplyr", warn.conflicts = F) 3 | 4 | unify_ios_battery <- function(ios_battery){ 5 | # We only need to unify battery data for iOS client V1. V2 does it out-of-the-box 6 | # V1 will not have rows where battery_status is equal to 4 7 | if(nrow(ios_battery %>% filter(battery_status == 4)) == 0) 8 | ios_battery <- ios_battery %>% 9 | mutate(battery_status = replace(battery_status, battery_status == 3, 5), 10 | battery_status = replace(battery_status, battery_status == 1, 3)) 11 | return(ios_battery) 12 | } 13 | 14 | main <- function(data, stream_parameters){ 15 | return(unify_ios_battery(data)) 16 | } -------------------------------------------------------------------------------- /tools/update_format_env.py: -------------------------------------------------------------------------------- 1 | import configparser 2 | import yaml 3 | from pathlib import Path 4 | 5 | if not Path('./.env').exists(): 6 | print("There is no .env file in RAPIDS root directory, nothing to migrate") 7 | else: 8 | config = configparser.ConfigParser() 9 | config.read('./.env') 10 | 11 | credentials = dict() 12 | for section in config.sections(): 13 | credentials[section] = dict() 14 | for attribute in config[section]: 15 | credentials[section][attribute] = config[section][attribute] 16 | 17 | with open('./credentials.yaml', 'w') as f: 18 | data = yaml.dump(credentials, f) 19 | 20 | print("Migration complete. Your credentials stored in .env should now be in credentials.yaml") -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empty/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empty/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /src/data/workflow_example/download_target_data.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | library("dplyr", warn.conflicts = F) 3 | library(readr) 4 | library(stringr) 5 | library(yaml) 6 | library(lubridate) 7 | 8 | 9 | participant_file <- snakemake@input[["participant_file"]] 10 | sensor_file <- snakemake@output[[1]] 11 | 12 | participant <- read_yaml(participant_file) 13 | record_id <- participant$PHONE$LABEL 14 | 15 | target_data <- read.csv(snakemake@input[["data"]]) 16 | target_data <- target_data[target_data$record_id == record_id, ] 17 | 18 | target_data$local_date_time <- paste(target_data$local_date, "00:00:00") 19 | #target_data <- target_data %>% rename(local_date_time = local_date) 20 | 21 | target_data$timestamp <- 0 22 | 23 | write_csv(target_data, sensor_file) 24 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/empatica/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationcharge" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empty/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/ios/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/android/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empty/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/ios/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/empatica/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationcharge" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empty/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/ios/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/android/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empty/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/ios/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationcharge" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/android/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/empatica/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_periodic/empatica/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/phone_battery.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_battery_rapids_countdischarge","phone_battery_rapids_sumdurationdischarge","phone_battery_rapids_avgconsumptionrate","phone_battery_rapids_maxconsumptionrate","phone_battery_rapids_countcharge","phone_battery_rapids_sumdurationcharge" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",2,70.9154833333333,0.0607260020848825,0.0769243589957268,2,83.9986 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/android/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/empatica/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_periodic/empatica/fitbit_heartrate_intraday.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","fitbit_heartrate_intraday_rapids_minhr","fitbit_heartrate_intraday_rapids_modehr","fitbit_heartrate_intraday_rapids_avghr","fitbit_heartrate_intraday_rapids_minutesonpeakzone","fitbit_heartrate_intraday_rapids_diffmaxmodehr","fitbit_heartrate_intraday_rapids_stdhr","fitbit_heartrate_intraday_rapids_entropyhr","fitbit_heartrate_intraday_rapids_minutesoncardiozone","fitbit_heartrate_intraday_rapids_minutesonfatburnzone","fitbit_heartrate_intraday_rapids_diffminmodehr","fitbit_heartrate_intraday_rapids_medianhr","fitbit_heartrate_intraday_rapids_maxhr","fitbit_heartrate_intraday_rapids_minutesonoutofrangezone" 2 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_activity_recognition.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_activity_recognition_rapids_count","phone_activity_recognition_rapids_mostcommonactivity","phone_activity_recognition_rapids_countuniqueactivities","phone_activity_recognition_rapids_durationstationary","phone_activity_recognition_rapids_durationmobile","phone_activity_recognition_rapids_durationvehicle" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",6,3,2,19.9996666666667,0,9.99983333333333 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,3,2,14.99975,0,9.99983333333333 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_activity_recognition.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_activity_recognition_rapids_count","phone_activity_recognition_rapids_mostcommonactivity","phone_activity_recognition_rapids_countuniqueactivities","phone_activity_recognition_rapids_durationstationary","phone_activity_recognition_rapids_durationmobile","phone_activity_recognition_rapids_durationvehicle" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",6,3,2,19.9996666666667,0,9.99983333333333 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,3,2,14.99975,0,9.99983333333333 4 | -------------------------------------------------------------------------------- /src/features/phone_locations/barnett/library/ProgressBar.R: -------------------------------------------------------------------------------- 1 | ProgressBar <- 2 | function (maxn, ind){ 3 | if(maxn<51){ 4 | if (ind == 1) { 5 | cat("|1%--------------------50%--------------------100%|\n") 6 | cat("|") 7 | return() 8 | }else{ 9 | numprint=floor(50*ind/maxn)-floor(50*(ind-1)/maxn) 10 | if(numprint>0){ 11 | for(i in 1:numprint){ 12 | cat("|") 13 | } 14 | } 15 | } 16 | }else{ 17 | if (ind == 1) { 18 | cat("|1%--------------------50%--------------------100%|\n") 19 | cat("|") 20 | return() 21 | } 22 | if (maxn == ind) { 23 | cat("|\n") 24 | return() 25 | } 26 | if (floor(50 * ind/maxn) != floor(50 * (ind - 1)/maxn)) { 27 | cat("|") 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/phone_activity_recognition.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_activity_recognition_rapids_count","phone_activity_recognition_rapids_mostcommonactivity","phone_activity_recognition_rapids_countuniqueactivities","phone_activity_recognition_rapids_durationstationary","phone_activity_recognition_rapids_durationmobile","phone_activity_recognition_rapids_durationvehicle" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",6,3,3,19.9996666666667,0,9.99983333333333 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,3,2,14.99975,0,9.99983333333333 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/phone_activity_recognition.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_activity_recognition_rapids_count","phone_activity_recognition_rapids_mostcommonactivity","phone_activity_recognition_rapids_countuniqueactivities","phone_activity_recognition_rapids_durationstationary","phone_activity_recognition_rapids_durationmobile","phone_activity_recognition_rapids_durationvehicle" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",6,3,3,19.9996666666667,0,9.99983333333333 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,3,2,14.99975,0,9.99983333333333 4 | -------------------------------------------------------------------------------- /docs/datastreams/fitbitjson-mysql.md: -------------------------------------------------------------------------------- 1 | # `fitbitjson_mysql` 2 | This [data stream](../../datastreams/data-streams-introduction) handles Fitbit sensor data downloaded using the [Fitbit Web API](https://dev.fitbit.com/build/reference/web-api/) and stored in a MySQL database. Please note that RAPIDS cannot query the API directly; you need to use other available tools or implement your own. Once you have your sensor data in a MySQL database, RAPIDS can process it. 3 | 4 | ## Container 5 | The container should be a MySQL database with a table per sensor, each containing all participants' data. 6 | 7 | The script to connect and download data from this container is at: 8 | ```bash 9 | src/data/streams/fitbitjson_mysql/container.R 10 | ``` 11 | 12 | ## Format 13 | 14 | --8<---- "docs/snippets/jsonfitbit_format.md" 15 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/android/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,780 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,780 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/android/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 4 | -------------------------------------------------------------------------------- /src/data/streams/mutations/phone/aware/screen_ios_unification.R: -------------------------------------------------------------------------------- 1 | source("renv/activate.R") 2 | library("dplyr", warn.conflicts = F) 3 | 4 | 5 | unify_ios_screen <- function(ios_screen){ 6 | # In Android we only process UNLOCK to OFF episodes. In iOS we only process UNLOCK to LOCKED episodes, 7 | # thus, we replace LOCKED with OFF episodes (2 to 0) so we can use Android's code for iOS 8 | ios_screen <- ios_screen %>% 9 | # only keep consecutive pairs of 3,2 events 10 | filter( (screen_status == 3 & lead(screen_status) == 2) | (screen_status == 2 & lag(screen_status) == 3) ) %>% 11 | mutate(screen_status = replace(screen_status, screen_status == 2, 0)) 12 | return(ios_screen) 13 | } 14 | 15 | main <- function(data, stream_parameters){ 16 | return(unify_ios_screen(data)) 17 | } -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_frequency/android/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_frequency/android/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/mtz_event/ios/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,780 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,780 4 | -------------------------------------------------------------------------------- /tests/data/processed/features/stz_event/ios/phone_screen.csv: -------------------------------------------------------------------------------- 1 | "local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" 2 | "beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,960 3 | "beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,960 4 | --------------------------------------------------------------------------------