├── .gitignore ├── LICENSE ├── README.md ├── __init__.py ├── baseline_models ├── crossvit │ └── crossvit.py └── tfc │ ├── TFC │ ├── Data_split.py │ ├── KNN.py │ ├── augmentations.py │ ├── dataloader.py │ ├── loss.py │ ├── main.py │ ├── model.py │ ├── readme │ ├── trainer.py │ └── utils.py │ └── config_files │ ├── ECG_Configs.py │ ├── Epilepsy_Configs.py │ ├── FD_A_Configs.py │ ├── HAR_Configs.py │ ├── SleepEEG_Configs.py │ └── readme ├── config_env.sh ├── dependencies.txt ├── downstream_main.py ├── downstream_pipeline ├── analysis.py ├── config.py ├── corrected_linear_prob.py ├── data_clean.py ├── engine_finetune.py ├── linear_prob_main.py ├── main_finetune.py ├── model_apis.py ├── prepare_embeds.py └── task_specification.py ├── imgs ├── overview-very-new.pdf └── radar_plot.pdf ├── main_model.py ├── modules ├── head.py ├── lr_sched.py ├── normwear.py ├── patch_embed.py ├── pos_embed.py └── signal_preprocess.py ├── pretrain_main.py ├── pretrain_pipeline ├── __init__.py ├── dataset.py ├── engine_pretrain.py └── misc │ └── __init__.py └── zero_shot ├── engine_zeroshot.py ├── main_zeroshot.py ├── msitf_fusion.py ├── sentence_template.py └── zero_shot_inference.py /.gitignore: -------------------------------------------------------------------------------- 1 | **.DS_Store 2 | **/__pycache__/ 3 | 4 | **/model_ckpts/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /baseline_models/crossvit/crossvit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/crossvit/crossvit.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/Data_split.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/Data_split.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/KNN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/KNN.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/augmentations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/augmentations.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/dataloader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/dataloader.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/loss.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/main.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/model.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/readme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/readme -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/trainer.py -------------------------------------------------------------------------------- /baseline_models/tfc/TFC/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/TFC/utils.py -------------------------------------------------------------------------------- /baseline_models/tfc/config_files/ECG_Configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/config_files/ECG_Configs.py -------------------------------------------------------------------------------- /baseline_models/tfc/config_files/Epilepsy_Configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/config_files/Epilepsy_Configs.py -------------------------------------------------------------------------------- /baseline_models/tfc/config_files/FD_A_Configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/config_files/FD_A_Configs.py -------------------------------------------------------------------------------- /baseline_models/tfc/config_files/HAR_Configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/config_files/HAR_Configs.py -------------------------------------------------------------------------------- /baseline_models/tfc/config_files/SleepEEG_Configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/baseline_models/tfc/config_files/SleepEEG_Configs.py -------------------------------------------------------------------------------- /baseline_models/tfc/config_files/readme: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /config_env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/config_env.sh -------------------------------------------------------------------------------- /dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/dependencies.txt -------------------------------------------------------------------------------- /downstream_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_main.py -------------------------------------------------------------------------------- /downstream_pipeline/analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/analysis.py -------------------------------------------------------------------------------- /downstream_pipeline/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/config.py -------------------------------------------------------------------------------- /downstream_pipeline/corrected_linear_prob.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/corrected_linear_prob.py -------------------------------------------------------------------------------- /downstream_pipeline/data_clean.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/data_clean.py -------------------------------------------------------------------------------- /downstream_pipeline/engine_finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/engine_finetune.py -------------------------------------------------------------------------------- /downstream_pipeline/linear_prob_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/linear_prob_main.py -------------------------------------------------------------------------------- /downstream_pipeline/main_finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/main_finetune.py -------------------------------------------------------------------------------- /downstream_pipeline/model_apis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/model_apis.py -------------------------------------------------------------------------------- /downstream_pipeline/prepare_embeds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/prepare_embeds.py -------------------------------------------------------------------------------- /downstream_pipeline/task_specification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/downstream_pipeline/task_specification.py -------------------------------------------------------------------------------- /imgs/overview-very-new.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/imgs/overview-very-new.pdf -------------------------------------------------------------------------------- /imgs/radar_plot.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/imgs/radar_plot.pdf -------------------------------------------------------------------------------- /main_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/main_model.py -------------------------------------------------------------------------------- /modules/head.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/modules/head.py -------------------------------------------------------------------------------- /modules/lr_sched.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/modules/lr_sched.py -------------------------------------------------------------------------------- /modules/normwear.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/modules/normwear.py -------------------------------------------------------------------------------- /modules/patch_embed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/modules/patch_embed.py -------------------------------------------------------------------------------- /modules/pos_embed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/modules/pos_embed.py -------------------------------------------------------------------------------- /modules/signal_preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/modules/signal_preprocess.py -------------------------------------------------------------------------------- /pretrain_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/pretrain_main.py -------------------------------------------------------------------------------- /pretrain_pipeline/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pretrain_pipeline/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/pretrain_pipeline/dataset.py -------------------------------------------------------------------------------- /pretrain_pipeline/engine_pretrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/pretrain_pipeline/engine_pretrain.py -------------------------------------------------------------------------------- /pretrain_pipeline/misc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/pretrain_pipeline/misc/__init__.py -------------------------------------------------------------------------------- /zero_shot/engine_zeroshot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/zero_shot/engine_zeroshot.py -------------------------------------------------------------------------------- /zero_shot/main_zeroshot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/zero_shot/main_zeroshot.py -------------------------------------------------------------------------------- /zero_shot/msitf_fusion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/zero_shot/msitf_fusion.py -------------------------------------------------------------------------------- /zero_shot/sentence_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/zero_shot/sentence_template.py -------------------------------------------------------------------------------- /zero_shot/zero_shot_inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mobile-Sensing-and-UbiComp-Laboratory/NormWear/HEAD/zero_shot/zero_shot_inference.py --------------------------------------------------------------------------------