Papers › Test-Time Adaptation for ECG Classification via SQI-Gated Self-Training and...

Test-Time Adaptation for ECG Classification via SQI-Gated Self-Training and Beat-Rhythm Consistency

24 Aug 2026arXiv:2608.23347added by Syntology

Wenhan Jiang, Zhipeng Deng, Jiale Zhou, Haolin Wang, Yafei Ou, Yefeng Zheng

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Deep learning models for electrocardiogram (ECG) classification often suffer from significant performance degradation when deployed in unseen domains due to shifts in acquisition devices and patient populations. Test-time adaptation (TTA) offers a practical solution by adapting models using only unlabeled data at inference time. However, existing TTA methods often underperform on ECG tasks, since naive online updates ignore the hierarchical beat-rhythm structure of cardiac cycles and are vulnerable to signal artifacts, which leads to unstable adaptation and model drift. We propose BeatRhythm-TTA, an ECG-tailored TTA framework that explicitly accounts for ECG's noisy observations and structured beat-rhythm semantics under domain shift. First, to handle pervasive ECG artifacts, we introduce a Signal Quality Index (SQI)-gated adaptation scheme that selectively filters out low-quality signals to prevent harmful updates. Second, to leverage ECG's beat-rhythm semantics, we enforce dual-level consistency so the model preserves beat morphology and rhythm dynamics while adapting to shifted acquisition conditions. Extensive experiments on multi-label ECG diagnosis across three adaptation protocols, using PTB-XL as the source domain and CPSC2018/Georgia as two target domains, demonstrate the effectiveness of our method, yielding an average +2.70% relative improvement in Macro-F1 over the best competing method.

PaperPDFCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 19 code samples harvested from 1 repository linked to this paper: 15 ran (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 1 violated, 2 with no contract checked; 11 where Syntology's instrument failed) · 4 unverified. Where Syntology's instrument failed: 5 where our contract draft was wrong; 6 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 19 samples from 1 repository, 15 ran (4 with no instrument failure; 11 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

Vincent-Wenhan/BeatRhythm-TTA found in paper text by SyntologySyntology: 19 samples, 15 ran (11 instrument-failed) · 4 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested: 15 ran (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 1 violated, 2 with no contract checked; 11 where Syntology's instrument failed) · 4 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
1ran · violated contract
5ran · our draft was wrong
6ran; the contract check could not run
2ran
4unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Vincent-Wenhan/BeatRhythm-TTA. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

Vincent-Wenhan/BeatRhythm-TTA found in paper text by Syntology 19 samples, 15 ran (11 instrument-failed) · 4 unverified
Adapter in 28 papers src/method/beatrhythmtta.py ran MIT (permissive) · c0af846e96ca4517 · report fixture: returned Adapter · level recorded 2026-09-22
OutputHook src/method/beatrhythmtta.py ran MIT (permissive) · 4f9c8246f0d92fdc · report fixture: returned OutputHook · level recorded 2026-09-22
_aggregate_sample_sqi_from_beats src/method/beatrhythmtta.py ran · our draft was wrong fingerprinted MIT (permissive) · e9d6a42d11559450 · report fixture: signature beat_w:Tensor/1/float, counts:Tensor/1/int, mode:str/0/str · returned Tensor · level recorded 2026-09-22
_augment_time_aligned src/method/beatrhythmtta.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · cc7d4ce406f2e230 · report fixture: signature x:Tensor/3/float, noise_std:float/0/float, gain_std:float/0/float, mask_ratio:float/0/float, mask_num:int/0/int · returned Tensor · level recorded 2026-09-22
_beat_sqi_from_raw src/method/beatrhythmtta.py ran; the contract check could not run (RAISES) MIT (permissive) · 23352225e22a2766 · report fixture: signature x:Tensor/3/float, r_list:list/1/Tensor, eps:float/0/float · returned tuple · level recorded 2026-09-22
_cos_loss src/method/beatrhythmtta.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 1469877e1da868a1 · report fixture: signature a:Tensor/2/float, b:Tensor/2/float, stopgrad:bool/0/bool · returned Tensor · level recorded 2026-09-22
_cos_loss_vec src/method/beatrhythmtta.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 1e42a7bd01e89218 · report fixture: signature a:Tensor/2/float, b:Tensor/2/float, stopgrad:bool/0/bool · returned Tensor · level recorded 2026-09-22
_get_module_by_name src/method/beatrhythmtta.py ran · our draft was wrong MIT (permissive) · 81577d17c0818df4 · report fixture: signature model:callable/0/?, name:str/0/str · returned Linear · level recorded 2026-09-22
_map_rpeaks_sample_to_feat src/method/beatrhythmtta.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 499349346847f746 · report fixture: signature r:Tensor/1/int, T_in:int/0/int, T_feat:int/0/int · returned Tensor · level recorded 2026-09-22
_pool_beats src/method/beatrhythmtta.py ran; the contract check could not run (RAISES) MIT (permissive) · 029a9cac897dd0c7 · report fixture: signature feat:Tensor/3/float, r_list_feat:list/1/Tensor, w_feat:int/0/int · returned Tensor · level recorded 2026-09-22
as_2class_if_binary src/method/beatrhythmtta.py ran · honoured contract fingerprinted MIT (permissive) · 3bafcfe99aa8c684 · report fixture: signature logits:Tensor/2/float · returned Tensor · level recorded 2026-09-22
bn_affine_params_only src/method/beatrhythmtta.py ran · our draft was wrong MIT (permissive) · ca63893288e88e89 · report fixture: signature model:callable/0/? · returned list · level recorded 2026-09-22
bn_modules src/method/beatrhythmtta.py ran · our draft was wrong MIT (permissive) · 62a7126295af3df9 · report fixture: signature model:callable/0/? · returned list · level recorded 2026-09-22
forward in 75 papers src/method/beatrhythmtta.py ran · our draft was wrong MIT (permissive) · 95c7d423e5761bc9 · report fixture: signature model:callable/0/?, x:Tensor/2/float · returned Tensor · level recorded 2026-09-22
is_multilabel src/method/beatrhythmtta.py ran · violated contract MIT (permissive) · 90ab2183d1b2985c · report fixture: signature cfg:Config/0/? · returned bool · level recorded 2026-09-22
BeatRhythmTTA src/method/beatrhythmtta.py unverified MIT (permissive) · c2e98b521fef27fa · report
disable_dropout src/method/beatrhythmtta.py unverified MIT (permissive) · 7e9b5e32fb471ada · report
set_bn_eval_only src/method/beatrhythmtta.py unverified MIT (permissive) · 93f5aab7ab70e133 · report
set_bn_train_only src/method/beatrhythmtta.py unverified MIT (permissive) · 95f74d4e6881a050 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for BeatRhythm-TTA (graph method: BeatRhythm-TTA). 19 bricks; individually on a fixture: 15 ran (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 1 violated, 2 with no contract checked; 11 where Syntology's instrument failed) · 4 unverified. The assembly has not been run end-to-end.

  1. BeatRhythmTTA entry · level 0 · unverified · c2e98b521fef27fa
  2. Adapter helper · level 1 · ran · c0af846e96ca4517
  3. OutputHook helper · level 1 · ran · 4f9c8246f0d92fdc
  4. _aggregate_sample_sqi_from_beats helper · level 1 · ran · our draft was wrong · e9d6a42d11559450
  5. _augment_time_aligned data_transform · level 1 · ran; the contract check could not run (RAISES) · cc7d4ce406f2e230
  6. _beat_sqi_from_raw helper · level 1 · ran; the contract check could not run (RAISES) · 23352225e22a2766
  7. _cos_loss loss · level 1 · ran; the contract check could not run (RAISES) · 1469877e1da868a1
  8. _cos_loss_vec loss · level 1 · ran; the contract check could not run (RAISES) · 1e42a7bd01e89218
  9. _get_module_by_name helper · level 1 · ran · our draft was wrong · 81577d17c0818df4
  10. _map_rpeaks_sample_to_feat helper · level 1 · ran; the contract check could not run (RAISES) · 499349346847f746
  11. _pool_beats helper · level 1 · ran; the contract check could not run (RAISES) · 029a9cac897dd0c7
  12. as_2class_if_binary helper · level 1 · ran · honoured contract · 3bafcfe99aa8c684
  13. bn_affine_params_only helper · level 1 · ran · our draft was wrong · ca63893288e88e89
  14. bn_modules helper · level 1 · ran · our draft was wrong · 62a7126295af3df9
  15. disable_dropout helper · level 0 · unverified · 7e9b5e32fb471ada
  16. forward helper · level 1 · ran · our draft was wrong · 95c7d423e5761bc9
  17. is_multilabel helper · level 1 · ran · violated contract · 90ab2183d1b2985c
  18. set_bn_eval_only helper · level 0 · unverified · 93f5aab7ab70e133
  19. set_bn_train_only helper · level 0 · unverified · 95f74d4e6881a050

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2608.23347") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2608.23347, was issued in August 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections