How jhziiiig/care works
CARE preprocesses CASAS event streams into model-ready sequence and image representations, then jointly learns aligned representations and ADL classifications. Users can train/evaluate or test from a checkpoint, with K-fold tuning available. The excerpts show preprocessing outputs, model components, and training/evaluation code; some preprocessing and loader details are omitted, so those connections are documented or marked unverified rather than inferred from filenames.
Main entry points: ContrastLearning.py Training loop · DataGeneration.py Preprocessing · dataset CASAS streams
Components 15
Data preparation
- Preprocessing
DataGeneration.py - Segmented sequences
DataGeneration.py - Sensor images
DataGeneration.py - Dataset loader
ContrastLearning.py
Representation learning
- Sequence encoder
ContrastLearning.py - Image encoder
ContrastLearning.py - Fusion classifier
ContrastLearning.py - Contrastive loss
ContrastLearning.py - Classification loss
ContrastLearning.py
Training and evaluation
- Training loop
ContrastLearning.py - Evaluation and tuning
ContrastLearning.py
Model artifacts
- Checkpoints
ContrastLearning.py - Metrics and logs
ContrastLearning.py
Other components
- Research user
- CASAS streams
dataset
Connections 19
- Research user → Preprocessing: runs preprocessing
README.md - CASAS streams → Preprocessing: provides raw data
README.md - Preprocessing → Segmented sequences: writes sequences
DataGeneration.py - Preprocessing → Sensor images: renders images
DataGeneration.py - Research user → Training loop: starts training
README.md - Segmented sequences → Dataset loader: loads sequences
- Sensor images → Dataset loader: loads images
- Dataset loader → Training loop: supplies batches
ContrastLearning.py - Training loop → Sequence encoder: encodes sequences
ContrastLearning.py - Training loop → Image encoder: encodes images
ContrastLearning.py - Sequence encoder → Fusion classifier: provides features
ContrastLearning.py - Image encoder → Fusion classifier: provides features
ContrastLearning.py - Training loop → Contrastive loss: computes alignment loss
ContrastLearning.py - Training loop → Classification loss: computes class loss
README.md - Training loop → Checkpoints: saves models
ContrastLearning.py - Research user → Evaluation and tuning: runs evaluation
README.md - Checkpoints → Evaluation and tuning: loads checkpoint
README.md - Evaluation and tuning → Metrics and logs: records metrics
ContrastLearning.py - Evaluation and tuning → Checkpoints: selects best model
ContrastLearning.py