You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Paired prototype-similarity consistency extension for ProtoECGNet morphology #1618
I am Chia Yang Tsai (UIUC NetID ct68). I am proposing an extension to the existing ProtoECGNet morphology branch for paired clean/noisy prototype-similarity consistency training.
The proposed ProtoECGNetH1 subclass reuses the existing backbone, training stages, standard prototype projection, and PyHealth Trainer. The training loss averages the full original objectives from the clean and noisy views, then adds a consistency penalty on their pooled prototype similarities, with gradients flowing through both views. Setting lambda_cons=0 retains the same paired training procedure without that penalty, providing a matched control.
The contribution also includes focused helpers for fixed label order, all-zero targets, deterministic paired noise, and provenance tied to projected prototypes. It requires a small branch-factory change in the existing model; the current ProtoECGNet defaults are preserved.
The implementation is prepared on a branch based on master at 454b3943. A Colab CPU snapshot hash-matched to the exported code for commit 078982d4 passed a selected 251-test suite and a two-arm synthetic Trainer example. The real-ECG research results came from a separate custom pipeline, not from retraining with PyHealth Trainer. No real ECGs or trained weights are included; numerical compatibility limits will be documented in the PR.
Would this subclass and the small default-preserving change to the existing model be an appropriate scope for a PyHealth model contribution? I plan to link this issue in a PR targeting master for detailed review.
Thanks for the write-up. The implementation is now open as #1620. Because it changes the existing protoecgnet.py and is about 4.7k lines, it is labeled status: manual, so a maintainer will answer the scope question there.
Activity
solarsys commentedon Nov 26, 2026
Thanks for the write-up. The implementation is now open as #1620. Because it changes the existing
protoecgnet.pyand is about 4.7k lines, it is labeledstatus: manual, so a maintainer will answer the scope question there.