Next Article in Journal
State of the Art: Building-Integrated Photovoltaic (BIPV) Products
Previous Article in Journal
Exploration of Convergence Point Characteristics in Near-Sea-Surface Wireless Power Transfer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Single-Scale EMA Latent Memory for Strictly Causal Dense Arm-Motion Recognition from Multi-Channel sEMG

1
Department of Computer Basic Teaching, Shenyang Normal University, Shenyang 110034, China
2
International School of Information Science and Engineering, Dalian University of Technology, Dalian 116020, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(15), 7862; https://doi.org/10.3390/app16157862
Submission received: 12 June 2026 / Revised: 5 August 2026 / Accepted: 5 August 2026 / Published: 6 August 2026

Featured Application

This study provides a controlled strictly causal benchmark for dense pointwise sEMG recognition research in rehabilitation interfaces, prosthetic control, and human–machine interaction. It evaluates the trade-offs among causal context use, transition sensitivity, and model-level full-buffer efficiency; it does not validate incremental, real-time, embedded, or end-to-end deployment.

Abstract

Strictly causal dense arm-motion recognition from surface electromyography (sEMG) requires past context without future samples. We evaluated single-scale exponential moving average (EMA) latent memory as a lightweight causal temporal mechanism under a controlled, matched design. Causal CNN, causal CNN–Transformer (CT), and causal CNN with EMA memory (CEMA) were tested on a 30-subject, eight-channel, seven-class dataset in five subject-independent folds. At 300, 500, and 800 ms, five deterministic seeds were averaged within-fold before inference. CEMA accuracy exceeded CNN accuracy by 9.105, 9.313, and 9.657 percentage points, respectively (all Holm-adjusted paired-t p < 0.001). CEMA–CT differences were +0.209, −0.240, and −0.715 points, respectively; confidence intervals included zero, and directions varied across seeds. With parameters frozen, resetting memory at the current-window start reduced CEMA accuracy by 10.928–17.009 points. CEMA–CT B100 recall differences were −4.97, −12.84, and −16.54 points, respectively, whereas absolute-delay differences were 6.79, 7.71, and 6.94 ms, respectively, all below 8 ms. At 300 ms, CEMA used 6968 parameters and 0.751 M MACs, 48.0% fewer MACs than CT; CT required 2.31× CEMA’s full-buffer host-wall time. CEMA offers a favorable average accuracy–efficiency trade-off, although CT remains more responsive at transitions. Timing reflects full-buffer host inference only, not incremental, embedded, or end-to-end deployment.

1. Introduction

1.1. Dense Pointwise sEMG Recognition as a Strictly Causal Sequence Problem

Surface electromyography (sEMG) provides a non-invasive measure of muscle activation. Early pattern-recognition methods for multifunction myoelectric control demonstrated the practical value of translating muscle activity into movement commands [1]. Recent reviews have described myoelectric prosthetic-hand control, sEMG challenges in prosthetic applications, neural-information extraction, and clinical perspectives for myoelectric prostheses [2,3,4,5]. In rehabilitation and human–machine interaction, however, the accurate classification of isolated signal segments is not sufficient. A recognition system must also produce coherent labels as muscle activation emerges, actions change, and the user returns to rest. Strictly causal dense pointwise recognition, therefore, involves a balance among discrimination, temporal consistency, response timing, and the information available at the moment each prediction is made.
Most sEMG pattern-recognition studies assign a single label to a fixed analysis window and evaluate each window independently. Public benchmark datasets have improved the reproducibility of this fixed-window setting for non-invasive robotic-hand control [6], while CNN-based models and transfer-learning methods offer complementary ways to learn or reuse window-level representations [7,8]. Dense pointwise recognition poses a different challenge because every valid sample within the current window must receive a label. Here, “dense” refers to pointwise predictions within each current window, whereas model updates occur at the specified window stride. This distinction matters near action boundaries: a few isolated label changes can fragment the output, but an unusually low transition count may also indicate that true transitions have been delayed or missed. Neither aggregate accuracy nor transition count alone is sufficient to characterize this behavior.
Reliable comparison is further complicated by variation across subjects, recording sessions, electrode placements, and tasks. A recent survey identifies these factors as major sources of generalization difficulty in sEMG-based hand-gesture recognition [9]. Few-shot learning, transfer learning, and unsupervised domain adaptation address different forms of limited supervision and recording-condition shift [10,11,12], while large-scale multi-user zero-shot modeling and recent sEMG architecture-design work extend this perspective [13,14]. Performance also depends on segmentation choices [15], feature representation [16], and classifier design for cross-individual recognition [17]. These considerations motivate the use of subject-independent folds, a shared pre-processing and optimization protocol, and a clear separation between internal temporal modeling and output post-processing. Under such controlled conditions, a matched temporal-module comparison is more informative than a direct comparison, with heterogeneous results reported across prior studies.

1.2. Temporal Context, Causality, and Matched Model Comparison

CNNs are effective at extracting local temporal patterns and cross-channel structures from sEMG signals [18]. More elaborate variants extend this capability through multi-scale fusion, channel attention, or gated temporal convolution [19,20]. Even so, simply increasing the input-buffer length does not determine how information from different time points is retained, weighted, or integrated. Local convolutional encoding is, therefore, an important component of temporal representation, but it does not by itself provide an explicit mechanism for maintaining historical context.
Sequence models address this limitation through several mechanisms. Temporal convolutions can provide sequence-modeling baselines [21,22], while attention-based transfer models have been used for electromyographic gesture estimation [23], and real-time motor-unit decoding illustrates an alternative signal-processing path [24]. Structured state-space models use state recursions [25,26,27], and EMA-like or retention mechanisms combine recurrent updates with gated attention or parallel/recurrent formulations [28,29]. Transformer-based architectures have been applied to conventional and high-density sEMG gesture recognition [30,31,32]. Related studies have also combined CNNs with Vision Transformers or used Transformer-based models for continuous and deployable sEMG estimation [33,34,35]. Recent studies have further considered noise resilience, time-varying feature enhancement, and wearable high-density sensing to challenge sEMG recognition settings [36,37,38]. Although these approaches differ in their representational flexibility, memory organization, and implementation cost, their central distinction lies in how past information is stored, weighted, and combined.
Recent neural sequence architectures have already incorporated EMA-like state updates in richer mechanisms: Moving Average Equipped Gated Attention (MEGA) couples multi-dimensional damped EMA with gated attention, whereas Retentive Network (RetNet) uses a retention mechanism with parallel, recurrent, and chunkwise-recurrent formulations [28,29].
The present study does not claim to introduce EMA, a new attention architecture, or a general state-space model. Instead, it examines whether the proposed Causal CNN + single-scale EMA latent memory (CEMA) model can retain useful causal encoder history for dense sEMG recognition through a deliberately constrained shared-scalar EMA state. The CEMA temporal path is restricted to one temporal scale and does not perform content-dependent attention. It is, therefore, positioned as a compact and interpretable point within the broader temporal-modeling design space.
A causal Transformer provides a relevant and more flexible comparator for this question. We, therefore, compared three matched models: a Causal Convolutional Neural Network (CNN), a Causal CNN–Transformer (CT), and CEMA. To isolate the effect of the temporal module, the three models shared the same causal CNN encoder, dense decoder, optimizer, subject folds, and validation-based checkpoint-selection rule. CT served as a matched temporal comparator rather than as the proposed architecture, and differences between CEMA and CT should not be attributed solely to self-attention.
Here, causality is defined as an end-to-end restriction on information access. A prediction at time t may depend only on raw or derived signal samples available no later than t. A causal mask inside the neural network is, therefore, insufficient if pre-processing has already introduced future information into an earlier representation. To enforce strict causality throughout the pipeline, we use forward-only filtering, zero neural look-ahead, history-buffered current-window inputs, and loss and evaluation restricted to the final current window. Available context, cold-start duration, update interval, and future look-ahead are reported separately because they describe different aspects of temporal availability and response timing.

1.3. Single-Scale EMA Latent Memory and Study Scope

Let z l denote the causal feature produced by the shared CNN encoder. A single learned scalar α ( 0 , 1 ) recursively combines the current feature with the previous latent state. The resulting state is fused with the current feature before dense decoding. This design provides one explicit temporal scale while preserving a direct path for current evidence. It should, therefore, be understood as a compact causal latent-state accumulator rather than as a multi-scale memory bank or an attention mechanism.
The principal contribution of this study is a carefully controlled evaluation of a lightweight single-scale EMA latent memory mechanism for strictly causal dense sEMG recognition, rather than the introduction of a fundamentally new sequence-modeling architecture. CNN, CT, and CEMA share the same causal encoder, dense decoder, pre-processing, subject-independent folds, optimization, and checkpoint-selection procedure, which allows the temporal module to be examined under matched conditions. The evaluation asks whether CEMA benefits from informative historical content, how its pointwise recognition performance relates to boundary sensitivity, and whether it can approach a matched causal Transformer with a lower model cost. These questions are addressed through trained and frozen-checkpoint memory ablations, window-internal and stream-level boundary analyses, causal smoothing controls, and efficiency measurements. The complete W = 100 ms context curve (100–1100 ms) is reported descriptively using seed 0, whereas 300, 500, and 800 ms serve as the primary context anchors for five-seed inference. A seed-0 W = 10 ms feasibility pilot is reported separately in Supplementary Methods S1 and Supplementary Table S5 and is not used for primary inference or deployment claims.

2. Materials and Methods

2.1. Data, Labels, and Subject-Independent Splits

We used the public MyoelectricData example dataset distributed with the Myoelectric Control Development Toolbox [39]. The dataset comprises 720 matched signal–label recording pairs from 30 subjects, with 24 recordings per subject. Each signal recording contains eight sEMG channels sampled at 3000 Hz, and the corresponding label file provides pointwise annotations for seven arm-motion classes: Hand Open, Hand Close, Wrist Flexion, Wrist Extension, Supination, Pronation, and Rest.
Evaluation followed a five-fold subject-independent design. The 30 subject identifiers were shuffled once using random seed 0 and divided into five non-overlapping test groups of six subjects each. For each fold, the first four subjects of the next group in cyclic order were used for validation, while the remaining 20 subjects formed the training set. Training, validation, and test subjects were, therefore, mutually disjoint within every fold. The test sets for folds 1–5 were {1, 4, 6, 11, 18, 19}, {8, 15, 21, 26, 27, 30}, {3, 5, 7, 20, 22, 24}, {10, 12, 16, 17, 23, 29}, and {2, 9, 13, 14, 25, 28}, respectively, ensuring that every subject appeared in the test set exactly once. Checkpoints and validation-controlled parameters were selected using only the training and validation subjects. The held-out test subjects were evaluated only after model selection had been completed.
After pre-processing, the dense label sequences had an effective temporal resolution of 1000 Hz. The five held-out subject folds, rather than individual labeled time points, served as the independent statistical units for uncertainty estimation. Across the pooled test predictions, the proportions of the seven classes ranged from 13.869% to 14.641%, with Rest accounting for 14.441%. This near-balanced distribution supports the use of Macro-F1 as a class-balanced complement to accuracy and reduces concern that the aggregate results were dominated by a single majority class.

2.2. Strictly Causal Pre-Processing and Current-Window Evaluation Protocol

Raw sEMG recordings were sampled at 3000 Hz and filtered using a fourth-order 10–400 Hz Butterworth band-pass filter implemented with scipy.signal.sosfilt [40]. Filtering was applied once to each complete recording in the forward direction, with the filter state initialized to zero at recording onset. No scipy.signal.filtfilt or other bidirectional operation was used, and startup-transient samples were retained. Label intervals were reconstructed from the annotated one-based data_indx start positions, with each interval ending immediately before the next annotated start and the final interval extending for 3 s. Filtering preceded label-based sample selection so that the causal filter state continued through unlabeled regions. After filtering, only samples belonging to the seven target classes were retained. Signals and labels were then subsampled using identical zero-based indices (0, 3, 6, …), yielding pointwise-aligned sequences at 1000 Hz, corresponding to a temporal resolution of 1 ms. No amplitude normalization, standardization, or subject-level scaling was applied.
In the primary protocol, each block had a duration of W = 100 ms. Each input consisted of m historical blocks followed by one final current block, with m = 0 , , 10 and consecutive inputs advanced by one block (stride_windows = 1). Historical blocks provided context only, whereas the training loss and all primary evaluation metrics were computed exclusively over the final current block. The total available causal context was, therefore, ( m + 1 ) W , the update interval was W , and informational future look-ahead was 0 ms; no prediction depended on signal samples occurring later than the predicted time point. The evaluated implementation used full-buffer inference, in which the complete current block was accumulated before one forward pass produced all dense predictions for that block. Current-window buffering, therefore, introduced no waiting for the final sample and up to W 1 ms for the first sample, corresponding to 0–99 ms for W = 100 ms and 0–9 ms for W = 10 ms, excluding model-execution time. This buffering delay is distinct from the update interval and from end-to-end system latency, which was not measured. To ensure that all context settings were evaluated at identical current-window positions, candidate windows were sampled every 100 ms from a common eligible region beginning 1600 ms after recording onset. This excluded the first 16 candidate windows from each recording, corresponding to 1.878% of the otherwise eligible m = 0 windows. These samples remained part of causal filtering but were not used as evaluation windows. Each buffered input was drawn entirely from a single recording, so neither the historical context nor the current block crossed a recording boundary.
A separate seed-0 W = 10 ms descriptive feasibility pilot, including its separate block protocol and results, is reported in Supplementary Methods S1 and Supplementary Table S5. It is not pooled with the W = 100 ms primary-anchor analysis and does not establish seed-robust superiority, online execution, or end-to-end latency.

2.3. Matched Causal Model Architectures

All three models shared the same input representation, causal CNN encoder, dense decoder, subject-independent folds, optimizer, and checkpoint-selection protocol. As shown in Table 1, their sole architectural difference was the temporal path between the encoder and decoder: an identity mapping in CNN, a causally masked Transformer in CT, and the single-scale EMA latent memory module in CEMA. This matched design was intended to isolate the effect of the temporal module while holding local feature extraction, dense decoding, data splits, optimization, and model-selection procedures fixed. CT, therefore, served as a matched temporal comparator rather than as a comparator of self-attention alone, because the Transformer block also contains other operations.
The shared encoder received an eight-channel sEMG sequence and contained two one-dimensional causal convolutional layers with channel progression 8→32→16. Each layer used a kernel size of 8, a stride of 2, seven-sample left padding, and zero right padding, which resulted in an overall downsampling factor of 4. Each encoder layer followed the sequence Conv1D, ReLU, and timewise LayerNorm over the channel dimension. Thus, every latent position depended only on the current and preceding input samples. Using the same encoder across all three models ensured identical local feature extraction and temporal downsampling.
The models differed in how the encoded latent sequence was processed. In CNN, the encoder output was passed directly to the decoder through an identity path, without an additional temporal-context module. In CT, fixed sinusoidal positional encoding was added to the latent sequence before it was processed by two PyTorch Transformer encoder layers [41]. Each layer used a model dimension of d = 16 , four attention heads, a feed-forward dimension of 64, dropout of 0.1, ReLU activation, post-norm ordering (norm_first = False), residual connections, and the standard LayerNorm configuration. A strict upper-triangular Boolean mask prevented attention to future latent positions. CT served as a matched temporal-context comparator, and its comparison with CEMA, therefore, reflected the complete Transformer block rather than self-attention alone. The positional encoding was preallocated for 50,000 latent positions.
In CEMA, temporal context was represented by a recursively updated causal state. A single learned decay parameter was shared across all 16 latent dimensions. At each latent position, the current encoder feature and the corresponding EMA-memory state were combined through a 1 × 1 fusion layer, followed by a residual connection and LayerNorm. The residual path preserved the current local representation, while the EMA state carried compressed information from preceding latent positions.
All three temporal paths were connected to the same dense decoder. A shared 1 × 1 Conv1D classifier mapped the 16-dimensional latent representation to seven class logits. These logits were upsampled to the original input-sample resolution using repeat-interleave with a factor of 4, producing dense predictions for the seven classes. Training loss and all primary evaluation metrics were computed only over the final current window. Because the encoder, temporal modules, and decoder used no future information, all three models had a future look-ahead of 0 ms.
The CNN, CT, and CEMA models contained 6407, 12,967, and 6968 learnable parameters, respectively. The parameter counts were not artificially equalized because the temporal modules had inherently different structures. Instead, comparison fairness was maintained through the shared encoder and decoder, identical subject-independent folds, optimizer settings, training procedure, and checkpoint-selection criterion. CEMA contained additional state-fusion parameters that were absent from the CNN identity path. The history-removal and latent-masking ablations were, therefore, used to assess whether its performance gains arose from informative historical content rather than from the additional fusion parameters alone.

2.4. Single-Scale EMA Latent Memory Module

For the causal latent sequence Z = z 0 , , z L 1 = E θ e X produced by the shared encoder, with z l R d and d = 16 , the proposed temporal module maintains a single recurrent EMA state across latent time. Because the encoder downsamples the input by a factor of four, one latent step corresponds to 4 ms. A trainable scalar γ , shared across all latent dimensions and distinct from the encoder parameters θ e , is mapped to a valid EMA coefficient through α = sigmoid γ 0 , 1 . The memory state is initialized as h 1 = 0 at the beginning of each buffered sequence.
At latent index l , the state is updated as
h l = α z l + 1 α h l 1
where h l R d is the EMA state and z l is the current latent feature. This update is strictly causal because it depends only on the current feature and the preceding state. The same coefficient α is applied to all latent dimensions.
With zero initialization, Equation (1) can be expanded as
h l = j = 0 l α 1 α j z l j ,   w j = α 1 α j
where j denotes the lag in latent steps and w j is the corresponding lag weight. The resulting kernel depends only on temporal lag and defines a single shared exponential timescale; it is neither content-dependent attention nor a multi-scale memory bank.
The relative EMA kernel weight at lag q is w q w 0 = ( 1 α ) q . We define the continuous 5–relative-weight horizon as
τ 5% = 4 l n ( 0.05 ) l n ( 1 α ) m s
where τ 5 % denotes the lag at which the EMA kernel weight decreases to 5% of its zero-lag value. The factor of 4 ms follows from the encoder’s four-fold temporal downsampling.
Before dense decoding, the current latent feature and its EMA state are fused as
u l = LN z l + W f z l ; h l + b f
where u l is the fused latent feature, W f and b f are the learnable 1 × 1 fusion-projection parameters, z l ; h l denotes concatenation along the channel dimension, and LN denotes LayerNorm. The residual term z l preserves current local evidence, while the EMA state supplies accumulated historical context.
The shared decoder D ϕ , parameterized by ϕ , maps the fused latent sequence U = u 0 , , u L 1 to dense class probabilities:
p t = softmax D ϕ U t
where p t is the class-probability vector at input-time index t . Let I cur denote the indices of the final current window and y t the corresponding ground-truth label. The training objective is
L = 1 I cur t I cur log p t y t
Historical blocks, therefore, provide context only, whereas loss computation and all primary evaluation metrics are restricted to the final current window. During inference, the encoder first produces Z ; the EMA state is then updated recursively using Equation (1), fused with the current latent feature using Equation (4), and decoded using Equation (5). Only predictions indexed by I cur are retained.
Under incremental execution, the EMA recurrence requires O d persistent state and O d arithmetic per latent step, while the fusion projection requires O d 2 operations. These properties establish the mathematical feasibility of stateful incremental execution; however, the timing experiments reported in Section 3.4 evaluate full-buffer recomputation rather than an optimized streaming implementation.

2.5. Training and Model-Selection Configuration

2.5.1. Single-Seed Analyses

All three models were trained using the Adam optimizer with a learning rate of 0.001, β 1 = 0.9 , β 2 = 0.999 , ε = 10 8 , zero weight decay, and amsgrad = False. No learning-rate scheduler was used. Training was limited to 500 epochs, with early stopping based on validation accuracy and a patience of five epochs. The training and evaluation batch sizes were, respectively, 64 and 128 for input lengths below 800 samples, 48 and 96 for lengths from 800 to 1599 samples, and 32 and 64 for lengths of at least 1600 samples. A separate model was trained for each architecture × subject-fold × context combination. CNN, CT, and CEMA followed the same pre-processing pipeline, subject-independent folds, objective function, evaluation metrics, optimizer settings, and checkpoint-selection procedure. Training minimized the pointwise cross-entropy defined in Section 2.4, with supervision and loss computation restricted to the valid indices of the final current window, I c u r ; historical blocks provided context only.
Model selection and early stopping relied exclusively on the validation set. The held-out test subjects were not used for parameter updates, early stopping, or checkpoint selection and were evaluated only after model selection had been completed. Validation pointwise accuracy was the sole criterion: the checkpoint was updated only when validation accuracy strictly improved, and training stopped after five consecutive epochs without improvement. The retained checkpoint contained the model state_dict only, without optimizer or scheduler state. For the complete-context sweep and auxiliary analyses, seed 0 was applied to Python, NumPy, PyTorch, and all CUDA devices, although deterministic algorithms were not explicitly enforced.
This single-seed configuration generated the complete W = 100 ms, m   =   0–10 context curve and the auxiliary trained-history and W = 10 ms analyses, and it supplied the checkpoints used by the seed-0 smoothing analyses. Unless explicitly identified as part of the multi-seed retraining below, these results represent one fit per architecture × subject-fold × context combination and, therefore, do not estimate training-seed variability.

2.5.2. Deterministic Multi-Seed Anchor Analyses

For the primary multi-seed analysis, subject assignments were fixed using split seed 0, and CNN, CT, and CEMA were each trained with seeds 0, 1, 2, 3, and 4 at m = 2 ,   4 and 7 (300, 500, and 800 ms, respectively) across the five held-out subject folds. This yielded 5 × 3 × 3 × 5 = 225 completed training runs. All repeats used the same cached causal pre-processing, common eligible evaluation region, optimizer, early-stopping rule, validation-accuracy checkpoint selection, and current-window-only objective specified above; only training stochasticity was varied.
Each training seed controlled Python, NumPy, PyTorch, and all CUDA generators, model initialization, a dedicated mini-batch shuffling generator, dropout, and other stochastic operations. PyTorch deterministic algorithms and deterministic cuDNN execution were enabled; cuDNN benchmarking and TF32 were disabled; float32 matrix-multiplication precision was set to highest; CUBLAS_WORKSPACE_CONFIG was set to 4096:8; and pointwise logits and labels were flattened before cross-entropy computation to avoid a nondeterministic three-dimensional CUDA NLL path. Runs used Windows 10 build 26200, Python 3.11.14, PyTorch 2.12.0.dev20260218+cu128, CUDA 12.8, cuDNN 9.10.2, NumPy 2.2.1, and an NVIDIA GeForce RTX 5060 Ti. Environment settings and source hashes were retained with the analysis records.

2.6. Evaluation Metrics, Boundary Analyses, Smoothing Controls, and Diagnostic Ablations

2.6.1. Window-Internal Boundary Evaluation and Smoothing Controls

Accuracy was the primary pointwise metric, with Macro-F1 used as a complementary class-balanced measure. Accuracy was defined as the proportion of retained current-window time points assigned the correct label, whereas Macro-F1 was the unweighted mean of the seven class-specific F1 scores. Both metrics included all valid time points in the final current window. Event-level exclusions, therefore, did not affect accuracy, Macro-F1, or the classwise metrics. The five held-out subject folds, rather than individual time points, served as the statistical units for summary and uncertainty estimation.
Boundary events were defined as label changes within each evaluated 100 ms current window. The reference- and predicted-boundary sets were
B t r u e = { t 1 , , 99 : y t y t 1 }
and
B p r e d = { t 1 , , 99 : y ^ t y ^ t 1 }
respectively. Thus, only adjacent sample pairs within the current window were eligible. A physical transition between the sample immediately preceding the current window and its first sample was excluded from event accounting, although all current-window samples remained included in the pointwise metrics. Boundary events were evaluated separately within each current window, without cross-window stitching or event credit across window boundaries. B 50 , which required one-to-one predicted-to-reference matching within ± 50   m s , was used as the primary localization-sensitive endpoint. B 100 was retained as a permissive within-window coverage audit. Because eligible boundary positions ranged from 1 to 99 ms, the maximum separation between any two candidates within a window was 98 ms.
Boundary precision was the proportion of predicted boundaries matched to a reference boundary, and boundary recall was the proportion of reference boundaries successfully matched. Boundary F1 was their harmonic mean, while the missed-transition rate was the proportion of reference boundaries left unmatched. Unmatched predicted boundaries were counted as false transitions. For each tolerance, all admissible reference–prediction pairs were ordered by absolute temporal offset, followed by the reference-boundary index and predicted-boundary index. Greedy one-to-one matching then accepted a pair only when neither boundary had previously been assigned. This procedure prioritized the smallest absolute offset and used earlier indices for deterministic tie-breaking. Matched-boundary delay was reported as the absolute temporal distance between matched predicted and reference boundaries. Signed delay was also calculated as prediction time minus reference time, with positive values indicating later predictions. False transitions were reported per 1000 retained current-window output points. A stable flip was defined as a predicted-label change between adjacent points whose ground-truth labels were unchanged, and its rate was reported per 1000 eligible ground-truth-stable adjacent pairs.
Post hoc causal smoothing controls were evaluated for the raw CNN and CT outputs at m = 2 ,   4 , and 7, corresponding to 300, 500, and 800 ms of available context, respectively. Candidate windows for causal-median-probability and majority-label smoothing were 20, 50, 100, and 200 ms. Candidate coefficients for causal EMA probability smoothing were α = 0.2, 0.5, and 0.8, with lower values producing stronger smoothing. Smoothing state was maintained across contiguous current windows within the same recording and reset at recording boundaries or temporal gaps. For each model × context × fold × smoothing family, the parameter was selected using validation accuracy. Ties were resolved first by higher validation Macro-F1 and then by the least aggressive smoothing setting. Only the validation-selected parameter was applied to the held-out test subjects. No output post-processing was applied to CEMA.

2.6.2. Stream-Level Boundary Sensitivity Analysis

To assess sensitivity to the exclusion of current-window joins, a stream-level boundary evaluation was performed with the 225 saved deterministic multi-seed checkpoints described in Section 2.5.2; no model was retrained. For every CNN, CT, and CEMA checkpoint at 300, 500, and 800 ms, truth and predicted labels from the 100 ms current windows were ordered chronologically by subject and original recording. Consecutive windows were stitched only when their source positions were exactly contiguous within the same subject and recording. The final sample of the preceding window and the first sample of the following window then formed an eligible adjacent pair. No adjacency, event match, or prediction sequence crossed a recording or subject boundary.
Within each reconstructed recording, reference and predicted boundaries were defined by every adjacent-sample label change, including changes at valid window joins. B50 and B100 used the same greedy closest one-to-one matching rule as the window-internal analysis, applied without allowing matches between recordings. Precision, recall, F1, signed and absolute matched-boundary delay, missed-transition rate, false transitions per 1000 retained output points, and stable-flip rate were recalculated. Pointwise accuracy and Macro-F1 were unchanged because both boundary accounting modes used the same output samples. Only saved prediction windows were stitched for event accounting; model inference remained full-buffer. This analysis, therefore, evaluates stream-level boundary sensitivity and does not validate incremental, embedded, real-time, or deployment execution.

2.6.3. Frozen-Checkpoint Diagnostic Memory Ablation

A frozen-checkpoint diagnostic ablation was performed with all 75 CEMA checkpoints from the five-seed primary-anchor experiment (five seeds × three contexts × five folds). Every checkpoint was loaded in evaluation mode, all parameters were frozen, and no optimizer, backpropagation, or retraining was used. Three inference conditions were evaluated: (1) normal chronological memory, the original CEMA forward pass over the complete history-plus-current buffer; (2) reset-at-current-window, in which the EMA state was initialized to zero at the start of the current 100 ms window and recomputed only over the current latent features; and (3) zero-memory branch, in which the memory tensor entering fusion was replaced by zeros.
For both interventions, the full input buffer and causal encoder outputs were retained. Reset-at-current-window–preserved within-window EMA recurrence, whereas zero-memory retained the direct current-feature path, fusion weights and bias, normalization, and decoder. The normal implementation was audited against the original checkpoint forward pass and reproduced its logits, predictions, accuracy, and Macro-F1. Resetting or zeroing memory can introduce distribution shift, and the causal encoder can still transmit finite-receptive-field historical information. Accordingly, these interventions are frozen-checkpoint diagnostics rather than new training conditions or fully history-free models. The separately trained m = 0 condition, therefore, remains conceptually distinct.

2.7. Statistical Analysis and Implementation Audit

The 300, 500, and 800 ms contexts ( m = 2 ,   4 , and 7, respectively) were designated as the primary analysis anchors. Because this designation was made after the initial experiments had been completed, the anchors should be regarded as retrospectively selected rather than prospectively prespecified. The statistical procedure for these comparisons was finalized before the results were recomputed. Results across the complete m   =   0–10 curve were retained as descriptive and exploratory evidence and were not treated as 11 separate primary confirmatory tests.
For the primary multi-seed analysis, training-seed variability was incorporated without treating the 25 seed–fold combinations as independent observations. For each model and anchor, accuracy and Macro-F1 were summarized across the five training seeds by the seed mean, seed standard deviation, and seed range. For paired accuracy inference, CEMA−CNN and CEMA−CT differences were calculated for each seed within each held-out fold and then averaged over seeds within that fold. The five seed-averaged held-out folds were the paired statistical units. Seed-specific CEMA−CT differences and their directions were reported separately as robustness diagnostics.
The primary formal analyses reported mean paired accuracy differences, two-sided 95% paired-t confidence intervals, Cohen’s d z , and two-sided paired-t p values. Holm adjustment was applied jointly across the six anchor comparisons (CEMA−CNN and CEMA−CT at each of the three anchors). Because only five folds were available, small-sample sensitivity tests had coarse p value resolution and limited sensitivity to small or moderate effects. A two-sided paired-t sensitivity analysis indicated that d z = 1.682 was required to achieve 80% power at α = 0.05. Non-significant differences were not interpreted as evidence of equivalence. Other result families, including the complete context curve, trained history-content ablations, boundary/event measures, and smoothing analyses, were interpreted separately and labeled descriptive/exploratory or diagnostic where applicable.
For the stream-level boundary sensitivity analysis, every metric was first calculated separately for each training seed, model, context, held-out fold, and boundary-accounting mode. The five training seeds were then averaged within each fold, and means, standard deviations, and two-sided 95% t intervals were summarized over the five seed-averaged folds. Paired stream-level minus window-internal differences were calculated using the same fold-first rule. These comparisons were treated as sensitivity estimates rather than tests of model superiority; the 25 seed × fold values were not treated as independent observations.
For the frozen-checkpoint memory diagnostic, paired intervention-minus-normal differences were calculated separately for each training seed and held-out fold and then averaged over seeds within-fold. The five seed-averaged folds were the independent units. For accuracy and Macro-F1, the analysis reported mean paired differences, two-sided 95% paired-t confidence intervals, Cohen’s d z , and two-sided paired-t p values. Holm adjustment was applied separately for accuracy and Macro-F1 across the six context-by-intervention contrasts (reset-at-current-window minus normal and zero-memory minus normal at each of the three anchors).
The implementation audit included prefix-invariance checks, source and cache manifests, and validation-selected checkpoints. Batch-size-1 full-buffer inference was measured for every m = 0 , , 10 on an NVIDIA GeForce RTX 5060 Ti using Python 3.11.14, PyTorch 2.12.0.dev20260218+cu128, CUDA 12.8, FP32 arithmetic, and Windows 10 build 26200. Each checkpoint was evaluated in eval() mode under torch.inference_mode(). Timing began after 100 warm-up forward passes and comprised six CUDA-synchronized blocks of 200 forward passes. Both CUDA-event and host-wall times were recorded, with host-wall time used as the more conservative measure in the main analysis. The timed path included the full-buffer dense forward pass, final-current-window logit selection, and argmax. It excluded filtering, history construction, host-to-device transfer, file I/O, scheduling, and end-to-end control-loop latency. Serialized model sizes were measured from model-state-only checkpoints and excluded optimizer state. The W = 10 ms pilot was summarized descriptively using five-fold means and was not used to support claims of model superiority, boundary performance, smoothing effectiveness, validated deployment performance, or end-to-end latency.

3. Results

3.1. Context-Dependent Recognition Performance

3.1.1. Descriptive Context–Performance Curve

The complete-context analysis used W = 100 ms current windows and m   =   0–10 (100–1100 ms), one fit per architecture × fold × context, training seed 0, and no enforced deterministic algorithms. Selected numerical values from the curve are provided in Supplementary Table S1. These descriptive results do not estimate training-seed variability and are separate from the five-seed primary-anchor analysis in Section 3.1.2.
Across the seed-0 curve, CNN changed little beyond 300 ms, CEMA improved rapidly at short-to-intermediate contexts and then remained relatively stable, and CT continued to improve at longer contexts. Accuracy and Macro-F1 followed closely aligned trajectories across the complete context range, as shown in Figure 1.

3.1.2. Training-Seed Robustness at the Primary Context Anchors

All 225 planned deterministic fits were completed. Across model–anchor combinations, the seed SD of five-fold mean accuracy ranged from 0.164 to 0.632 percentage points, and the corresponding Macro-F1 SD ranged from 0.165 to 0.692 points. Full seed means, SDs, and ranges are provided in Supplementary Table S2a.
After seeds were averaged within each held-out fold, CEMA accuracy exceeded CNN accuracy by +9.105, +9.313, and +9.657 percentage points at 300, 500, and 800 ms, respectively; the respective 95% CIs were [+8.994, +9.215], [+8.721, +9.905], and [+9.067, +10.246], and all Holm-adjusted paired-t p values were < 0.001 (Table 2). The difference was positive for every training seed at every anchor (Supplementary Table S2b).
For CEMA−CT, the fold-first accuracy differences were +0.209 points at 300 ms (95% CI [−0.467, +0.885], Holm-adjusted p = 0.877), −0.240 points at 500 ms ([−1.141, +0.661], p = 0.877), and −0.715 points at 800 ms ([−1.730, +0.300], p = 0.367). The direction changed across seeds at every anchor: 3 positive/2 negative at 300 ms and 1 positive/4 negative at both 500 and 800 ms; individual seed contrasts are in Supplementary Table S2b.
Thus, the large CEMA−CNN accuracy gain was robust to training seed, whereas the much smaller CEMA−CT difference did not show a stable direction. The five-seed analysis does not support a consistent pointwise accuracy advantage of CEMA over CT at the primary anchors; because no equivalence margin was tested, it also does not establish equivalence.

3.2. CEMA History-Content Ablation

3.2.1. Trained History-Content Ablations

The seed-0 auxiliary analysis compared chronological history with an independently trained m = 0 no-history checkpoint, deterministically window-shuffled history, and masked history. These controls change checkpoint parameters, optimization trajectories, or inputs and, therefore, do not isolate the EMA state with parameters fixed. Their descriptive means are retained in Table 3; detailed paired results are provided in Supplementary Note S1, and a complementary frozen-checkpoint diagnostic is reported in Section 3.2.2.
Chronological history exceeded the independently trained no-history and masked-history controls at all three anchors (all six Holm-adjusted paired-t p ≤ 0.0021), although exact tests had a coarse resolution with five folds. Window shuffling produced its largest mean reduction at 800 ms, but the Holm-adjusted p value was 0.073. These results are supportive single-seed evidence rather than isolated frozen-parameter effects (Supplementary Note S1).
The three seed-0 CEMA context models each used a single learned decay scale, with continuous five-relative-weight horizons of approximately 699, 738, and 810 ms at 300, 500, and 800 ms, respectively. Because the EMA state was reset at each buffered-sequence start, usable memory was truncated by the corresponding input buffer. The learned lag-weight profiles and their truncation by the available input buffers are shown in Figure 2.
The trained history controls, therefore, motivate but do not replace the frozen-checkpoint diagnostic below.

3.2.2. Frozen-Checkpoint Diagnostic Memory Ablation Results

All 75 deterministic five-seed CEMA checkpoints completed the three frozen inference conditions, and normal reproduced the source outputs. Relative to normal, reset-at-current-window reduced accuracy by 10.928–17.009 points across anchors, whereas zero-memory reduced it by 38.485–43.028 points; corresponding Macro-F1 effects and fold-first confidence intervals are reported in Table 4. All twelve metric-specific Holm-adjusted paired-t p values were <0.001.
These paired frozen-checkpoint drops directly show that predictions depend strongly on the learned EMA-memory pathway when all remaining parameters are fixed. They do not define new training conditions or a fully history-free model: Reset retains the full input and finite-receptive-field encoder history, and both interventions can induce distribution shift. Accordingly, the frozen diagnostic is interpreted separately from the independently trained no-history result in Section 3.2.1; no statistical comparison between those two evidence families was performed.
The fold-first five-seed CEMA–CNN accuracy effects were positive at all three contexts, whereas the smaller CEMA–CT differences had confidence intervals spanning zero. Both frozen-checkpoint interventions produced marked negative accuracy changes, with zero-memory producing larger reductions than reset-at-current-window. Together, the primary model contrasts and frozen-checkpoint intervention effects are summarized in Figure 3.

3.3. Boundary Behavior, Smoothing Controls, and Stream-Level Sensitivity Analysis

3.3.1. Window-Internal Boundary Behavior and Smoothing Controls

Pointwise accuracy and transition counts cannot alone characterize dense recognition: fewer changes may reflect either reduced fragmentation or delayed/missed true boundaries. Table 5, therefore, summarizes representative window-internal B50 recall, missed rate, absolute delay, false transitions, and stable flips for raw CT/CEMA and a validation-selected causal-median CNN control.
At 300 ms, CT and CEMA achieved similar accuracy and nearly identical false-transition and stable-flip rates, but CEMA showed lower B50 recall (43.6% versus 56.5%), more missed transitions, and longer absolute delay. At 800 ms, their rounded accuracy was again identical, whereas CT retained higher recall and fewer missed transitions, and CEMA produced more false transitions and stable flips. The validation-selected causal-median CNN control reduced false transitions and stable flips but at the cost of lower recall and longer delay, which illustrates a smoothing–boundary trade-off; this control represents post hoc output smoothing rather than the proposed EMA latent memory mechanism. Although the window-internal definition excluded window-start transitions uniformly and left pointwise metrics unchanged, event-level bias could not be assumed to be negligible; Section 3.3.2, therefore, restores eligible within-recording joins. Overall, the window-internal results indicate an accuracy–boundary trade-off: neither fewer predicted transitions nor high pointwise accuracy alone demonstrates better temporal behavior.

3.3.2. Stream-Level Boundary Behavior

We evaluated all 225 deterministic five-seed checkpoints after stitching exactly contiguous current-window predictions within each subject and original recording. The five held-out folds contained 720 recordings and 601,048 eligible joins; none crossed a recording or subject boundary. Table 6 reports B50/B100 precision, recall, and F1, while signed/absolute delay, missed rate, and false transitions are provided in Supplementary Table S3.
At B100, CNN achieved a recall of 0.996 at every anchor but a precision of 0.007 and approximately 40 false transitions per 1000 samples, which indicates extensive fragmentation. At 300, 500, and 800 ms, CT had higher B100 recall than CEMA, and the CEMA recall deficit widened with context (paired differences: −4.97, −12.84, and −16.54 percentage points, respectively; lower in all five folds). CEMA also had consistently longer absolute matched-boundary delay, but the mean increments were +6.79, +7.71, and +6.94 ms, respectively, all below 8 ms (<0.08 of the 100 ms current window). The main separation was, therefore, in recovered transitions rather than an extreme timing offset among matched events; false-transition differences changed with context (Supplementary Table S3), and no general CEMA boundary advantage was supported. The contrast between transition recall and matched-boundary timing is shown in Figure 4.
Restoring valid within-recording joins generally increased CT/CEMA B50 and B100 F1 and reduced missed-transition rates while also increasing matched delays and false transitions. Detailed stream-minus-window differences are provided in Supplementary Note S2; seam handling, therefore, changes event recovery and matching geometry jointly.
This sensitivity analysis uses chronologically stitched predictions from saved full-buffer checkpoints. It evaluates boundary accounting across consecutive windows, not incremental execution, embedded-system timing, online operation, or deployment validation.

3.4. Computational Efficiency, Storage, and Inference Time

Efficiency was evaluated using batch-size-1 full-buffer host-wall time, analytic forward MACs, parameter count, persistent buffers, and checkpoint size. Across all anchors, CEMA required fewer MACs and less host-wall time than CT, while CNN remained the lightest and fastest implementation. Table 7 summarizes the measured context-specific costs and model sizes.
At the 300 ms anchor, CEMA required 0.521 ms per full-buffer forward, compared with 1.206 ms for CT and 0.311 ms for CNN. Under this benchmark, CT, therefore, required 2.31 times the CEMA host-wall time. CEMA also used 0.751 M forward MACs, compared with 1.444 M for CT, corresponding to a 48.0% reduction. These results show that CEMA was substantially lighter than CT.
As context length increased, analytic forward MACs rose for both temporal models, with a steeper increase for CT than for CEMA. CEMA required fewer MACs than CT at all three anchors. For each model individually, however, measured host-wall time changed only slightly from 300 to 800 ms. Thus, under the tested GPU and implementation, the substantial increase in analytic MACs was not accompanied by a comparable increase in measured inference time. This observation is specific to the reported hardware and code path. The benchmark included the full-buffer dense forward pass, final-current-window logit selection, and argmax but excluded pre-processing, history-buffer construction, host-to-device transfer, file I/O, scheduling, and external control-loop latency.
CEMA added 561 learnable parameters relative to CNN and remained substantially smaller than CT; its checkpoint footprint was close to that of CNN, whereas CT’s was dominated by the released implementation’s persistent positional-encoding buffer (Table 7).
CT contained approximately 1.86 times as many learnable parameters as CEMA. The difference in serialized checkpoint size was much larger, mainly because the released CT implementation stored a 3125.00 KiB nonlearnable positional-encoding buffer covering 50,000 latent positions. This buffer increased checkpoint storage but was not included in the learnable parameter count. CEMA also has a fixed-state incremental formulation. At each latent step, the EMA update requires O ( d ) state memory and O ( d ) recurrent computation, while the fusion projection requires O ( d 2 ) computation. However, the reported benchmark evaluated the released full-buffer implementation, which recomputed the complete buffered sequence for every input example. It did not test an incremental encoder, persistent state across successive updates, or a complete streaming pipeline. The theoretical incremental formulation, therefore, should not be interpreted as a measured incremental-execution advantage or reduction in end-to-end latency.
Overall, CEMA occupied an intermediate efficiency position between CNN and CT. Under the reported full-buffer implementation, CEMA required fewer analytic MACs, fewer learnable parameters, less checkpoint storage, and lower host-wall time than CT, whereas CNN remained the lightest and fastest model. These comparisons apply only to the reported hardware, software, and execution path. The potential advantages of incremental CEMA execution remain to be experimentally validated.

3.5. Classwise Recognition Performance

Five-seed classwise F1 at 300 ms was examined descriptively after averaging seeds within each held-out fold. CEMA exceeded CNN for all seven class means and for every seed-specific class contrast, which indicates that the aggregate gain was not driven by one class; complete fold-first values are in Supplementary Table S4.
The largest CEMA–CNN mean gains were for Supination (+12.3 points), Pronation (+11.9), and Hand Open (+11.0). CEMA–CT class differences ranged from −0.78 to +1.43 points and varied in direction across seeds for most classes; no class-specific inferential or equivalence claim is made.
These descriptive classwise results support the broad CEMA–CNN gain but do not establish improved boundary behavior, which is evaluated separately in Section 3.3.

4. Discussion

4.1. Principal Findings and Contributions

The five-seed analyses support a stable CEMA pointwise gain over CNN at the three primary anchors, whereas the small CEMA–CT differences changed direction across seeds and established neither superiority nor equivalence (Table 2). Frozen interventions showed strong dependence on the EMA-memory pathway but with distribution-shift and residual-encoder-history caveats (Table 4). Stream-level stitching showed no general CEMA boundary advantage, while CEMA retained a lower measured model cost than CT. CEMA is, therefore, a lightweight temporal-memory alternative, not a general replacement for attention.

4.2. Interpretation of the Single-Scale EMA Mechanism

CEMA uses one shared decay scale, so historical weighting depends on temporal distance rather than content. With parameters frozen, reset-at-current-window reduced accuracy by 10.9–17.0 points and zero-memory by 38.5–43.0 points across anchors. These drops demonstrate pathway dependence, not a pure causal history effect: reset retains encoder history, zero-memory is a stronger intervention, and both can induce distribution shift. The independently trained no-history and shuffled/masked controls remain separate seed-0 auxiliary evidence.
The seed-0 context curve and ordering ablation suggested possible long-context limits, but the five-seed 800 ms CEMA–CT confidence interval included zero, and the shuffled-history effect was not significant after Holm correction. These patterns motivate, but do not prove the need for, multi-scale or content-adaptive memory.

4.3. Accuracy–Boundary Trade-Off and Smoothing Controls

High pointwise accuracy did not imply accurate transition localization. Relative to CT, CEMA’s mean B100 recall deficit was 4.97–16.54 percentage points, and its mean absolute-delay increment was 6.79–7.71 ms (<0.08 of the 100 ms current window). These transition-local costs limit transition-sensitive applications but do not negate CEMA’s stable pointwise accuracy gain over CNN. No general CEMA boundary or stability advantage is claimed.
Restoring within-recording joins changed event recovery, delay, and false transitions jointly. The seed-0 causal-median control likewise reduced isolated flips at the cost of recall and delay. Both analyses use saved full-buffer predictions and do not validate incremental or real-time execution.

4.4. Efficiency and Implementation Implications

The CEMA implementation used fewer analytic MACs, fewer learnable parameters, a smaller serialized checkpoint, and a lower measured host-wall time than the matched CT implementation. These quantities describe different aspects of the evaluated implementation: MACs estimate model-side arithmetic, parameter count describes trainable capacity, checkpoint size includes serialized buffers, and host-wall time depends on hardware, software, and the measured execution path. CNN remained the lightest and fastest evaluated model. CT’s larger checkpoint footprint was driven mainly by a nonlearnable positional-encoding buffer in this implementation and should not be generalized to all Transformer designs.
CEMA, therefore, occupied a favorable measured efficiency position between CNN and the matched CT implementation. Its mathematical recurrence permits a fixed-state update, but every reported timing measurement recomputed the full input buffer at batch size 1. No incremental encoder, persistent-state runtime, acquisition or transmission path, scheduler, controller, or embedded device was evaluated. The findings support model-level full-buffer efficiency on the tested host only; they do not validate online deployment, end-to-end latency, incremental-execution advantages, or embedded-system performance.

4.5. Classwise Findings, Limitations, and Future Directions

The five-seed classwise results showed CEMA–CNN gains across all seven classes, whereas the small CEMA–CT class differences were mostly direction dependent; no class-specific inference or equivalence claim was made (Supplementary Table S4).
The experimental validation was limited to a single publicly available dataset comprising 30 participants. Although the subject-independent design evaluates generalization to held-out participants within this dataset, it does not establish that the findings generalize to other datasets, acquisition protocols, electrode configurations, participant populations, or motion tasks. Validation on additional independent sEMG datasets would, therefore, strengthen the generality of the conclusions. Other limitations include five held-out folds, retrospective selection of the primary context anchors, one shared EMA decay scale, distribution shift in the frozen interventions, and stitched rather than incremental boundary evaluation. Fixed single-scale EMA smoothing may contribute to transition inertia, but this mechanism was not isolated, and CEMA was not evaluated as a dedicated onset detector. The complete context curve, trained history controls, smoothing analysis, and supplementary W = 10 ms pilot remain seed-0 descriptive or auxiliary evidence.
Future work should prioritize external validation on additional independent datasets and should further examine prospectively defined anchors, repeated-seed auxiliary analyses, multi-scale or content-adaptive memory, boundary-aware objectives, persistent-state execution, embedded hardware, and end-to-end control loops.

5. Conclusions

This study evaluated CEMA for dense sEMG motion recognition within a matched strictly causal encoder–decoder framework. At the 300, 500, and 800 ms primary context anchors used for the multi-seed analysis, the fold-first five-seed results showed stable CEMA accuracy gains over CNN, whereas the small CEMA–CT differences changed direction and did not establish either a stable CEMA advantage or equivalence. The frozen-checkpoint diagnostic showed a strong dependence on the learned EMA-memory pathway with all parameters fixed, while its distribution-shift and residual encoder-history limitations preclude interpreting the drops as a pure causal history effect. The five-seed classwise results further showed that the CEMA–CNN gain extended across all seven classes.
Boundary evaluation showed that CT had a higher B100 recall by 4.97–16.54 percentage points, while CEMA’s mean absolute delay was 6.79–7.71 ms longer; false-transition differences were context-dependent. CEMA required fewer parameters, analytic MACs, checkpoint storage, and measured host-wall time than the matched CT implementation. These findings indicate a favorable trade-off between average accuracy and efficiency for CEMA, whereas CT showed greater transition responsiveness under the evaluated boundary metrics. The reported host-wall timing measurements were obtained only for batch-size-1 full-buffer inference, in which the complete buffered sequence was recomputed for each input. Although the EMA recurrence permits a fixed-state formulation, no persistent-state incremental streaming implementation was benchmarked; its streaming latency and efficiency, therefore, remain to be experimentally validated. Accordingly, no claim is made regarding incremental, embedded, or end-to-end deployment performance. One shared decay scale, one dataset, five held-out folds, and seed-0 auxiliary analyses further limit generalization.
Overall, CEMA offers a favorable average accuracy–efficiency trade-off: it provides a seed-robust pointwise gain over CNN and a lower measured cost than CT, while CT remains more responsive at transitions. It is a lightweight strictly causal sequence-level alternative, not a dedicated transition detector or a general replacement for attention. Future work should experimentally validate persistent-state incremental streaming and end-to-end deployment, while also examining boundary-aware or multi-scale memory.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/app16157862/s1, Supplementary Table S1 reports selected values from the seed-0 context curve; Tables S2a–S2b report five-seed model summaries and seed-specific contrasts; Note S1 provides detailed trained history-ablation results; Table S3 and Note S2 provide stream-level timing/event metrics and stream-minus-window sensitivity estimates; Table S4 reports classwise F1; and Supplementary Methods S1, Table S5, and Results S1 report the seed-0 W = 10 ms feasibility pilot.

Author Contributions

Conceptualization, X.L. and Q.L.; methodology, X.L. and Q.L.; software, Q.L.; validation, X.L., Q.L. and Y.Z.; formal analysis, X.L. and Q.L.; investigation, X.L., Q.L. and Y.Z.; resources, X.L. and Y.Z.; data curation, Q.L.; writing—original draft preparation, X.L. and Q.L.; writing—review and editing, X.L., Q.L. and Y.Z.; visualization, Q.L.; supervision, X.L. and Y.Z.; project administration, X.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The 30-subject MyoelectricData dataset analyzed in this study is publicly available from MathWorks with the “Classify Arm Motions Using EMG Signals and Deep Learning” example at https://www.mathworks.com/help/signal/ug/classify-arm-motions-using-emg-signals-and-deep-learning.html (accessed on 4 August 2026). The corresponding data archive is available at https://ssd.mathworks.com/supportfiles/SPT/data/MyoelectricData.zip (accessed on 4 August 2026). The training and evaluation code, fixed subject splits, fold- and seed-level results, smoothing configurations, stream-level boundary analysis, frozen-checkpoint memory diagnostics, and statistical scripts are publicly available under the MIT License in the GitHub repository at https://github.com/luoxuangle888/cema-causal-emg-reproducibility (accessed on 4 August 2026). The software version used in this study is v1.0.0, available at https://github.com/luoxuangle888/cema-causal-emg-reproducibility/releases/tag/v1.0.0 (accessed on 4 August 2026), and is permanently archived in Zenodo at https://doi.org/10.5281/zenodo.21782624.

Acknowledgments

The authors acknowledge the availability of the public MyoelectricData example dataset used in this study. During the preparation of this manuscript, the authors used generative AI tools only for language polishing and formatting assistance. The authors reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
sEMGSurface electromyography
CNNCausal Convolutional Neural Network
CTCausal CNN–Transformer
CEMACausal CNN + single-scale EMA latent memory
EMAExponential moving average
Macro-F1Macro-averaged F1 score
ReLURectified linear unit
B50/B100One-to-one boundary matching with tolerances of ±50 and ±100 ms, respectively (B50 as the primary endpoint and B100 as a permissive sensitivity audit)

References

  1. Hudgins, B.; Parker, P.; Scott, R.N. A new strategy for multifunction myoelectric control. IEEE Trans. Biomed. Eng. 1993, 40, 82–94. [Google Scholar] [CrossRef] [PubMed]
  2. Chen, Z.; Min, H.; Wang, D.; Xia, Z.; Sun, F.; Fang, B. A review of myoelectric control for prosthetic hand manipulation. Biomimetics 2023, 8, 328. [Google Scholar] [CrossRef] [PubMed]
  3. Yadav, D.; Veer, K. Recent trends and challenges of surface electromyography in prosthetic applications. Biomed. Eng. Lett. 2023, 13, 353–373. [Google Scholar] [CrossRef] [PubMed]
  4. Farina, D.; Jiang, N.; Rehbaum, H.; Holobar, A.; Graimann, B.; Dietl, H.; Aszmann, O.C. The extraction of neural information from the surface EMG for the control of upper-limb prostheses: Emerging avenues and challenges. IEEE Trans. Neural Syst. Rehabil. Eng. 2014, 22, 797–809. [Google Scholar] [CrossRef] [PubMed]
  5. Li, W.; Shi, P.; Li, S.; Yu, H. Current status and clinical perspectives of extended reality for myoelectric prostheses: Review. Front. Bioeng. Biotechnol. 2024, 11, 1334771. [Google Scholar] [CrossRef] [PubMed]
  6. Atzori, M.; Gijsberts, A.; Castellini, C.; Caputo, B.; Hager, A.-G.M.; Elsig, S.; Giatsidis, G.; Bassetto, F.; Müller, H. Electromyography data for non-invasive naturally-controlled robotic hand prostheses. Sci. Data 2014, 1, 140053. [Google Scholar] [CrossRef] [PubMed]
  7. Atzori, M.; Cognolato, M.; Müller, H. Deep learning with convolutional neural networks applied to electromyography data: A resource for the classification of movements for prosthetic hands. Front. Neurorobot. 2016, 10, 9. [Google Scholar] [CrossRef] [PubMed]
  8. Côté-Allard, U.; Fall, C.L.; Drouin, A.; Campeau-Lecours, A.; Gosselin, C.; Glette, K.; Laviolette, F.; Gosselin, B. Deep learning for electromyographic hand gesture signal classification using transfer learning. IEEE Trans. Neural Syst. Rehabil. Eng. 2019, 27, 760–771. [Google Scholar] [CrossRef] [PubMed]
  9. Ni, S.; Al-qaness, M.A.A.; Hawbani, A.; Al-Alimi, D.; Abd Elaziz, M.; Ewees, A.A. A survey on hand gesture recognition based on surface electromyography: Fundamentals, methods, applications, challenges and future trends. Appl. Soft Comput. 2024, 166, 112235. [Google Scholar] [CrossRef]
  10. Rahimian, E.; Zabihi, S.; Asif, A.; Farina, D.; Atashzar, S.F.; Mohammadi, A. FS-HGR: Few-shot learning for hand gesture recognition via electromyography. IEEE Trans. Neural Syst. Rehabil. Eng. 2021, 29, 1004–1015. [Google Scholar] [CrossRef] [PubMed]
  11. Soroushmojdehi, R.; Javadzadeh, S.; Pedrocchi, A.; Gandolla, M. Transfer learning in hand movement intention detection based on surface electromyography signals. Front. Neurosci. 2022, 16, 977328. [Google Scholar] [CrossRef] [PubMed]
  12. Wang, Z.; Wan, H.; Meng, L.; Zeng, Z.; Akay, M.; Chen, C.; Chen, W. Optimization of inter-subject sEMG-based hand gesture recognition tasks using unsupervised domain adaptation techniques. Biomed. Signal Process. Control 2024, 92, 106086. [Google Scholar] [CrossRef]
  13. Eddy, E.; Campbell, E.; Bateman, S.; Scheme, E. Big data in myoelectric control: Large multi-user models enable robust zero-shot EMG-based discrete gesture recognition. Front. Bioeng. Biotechnol. 2024, 12, 1463377. [Google Scholar] [CrossRef] [PubMed]
  14. Wang, S.; Tang, H.; Chen, F.; Tan, Q.; Jiang, Q. Integrated block-wise neural network with auto-learning search framework for finger gesture recognition using sEMG signals. Artif. Intell. Med. 2024, 149, 102777. [Google Scholar] [CrossRef] [PubMed]
  15. Mendes Junior, J.J.A.; Pontim, C.E.; Dias, T.S.; Campos, D.P. How do sEMG segmentation parameters influence pattern recognition process? An approach based on wearable sEMG sensor. Biomed. Signal Process. Control 2023, 81, 104546. [Google Scholar] [CrossRef]
  16. Hellara, H.; Barioul, R.; Sahnoun, S.; Fakhfakh, A.; Kanoun, O. Comparative study of sEMG feature evaluation methods based on the hand gesture classification performance. Sensors 2024, 24, 3638. [Google Scholar] [CrossRef] [PubMed]
  17. Diao, Y.; Chen, Q.; Liu, Y.; He, L.; Sun, Y.; Li, X.; Chen, Y.; Li, G.; Zhao, G. A fuzzy granular logistic regression algorithm for sEMG-based cross-individual prosthetic hand gesture classification. J. Neural Eng. 2023, 20, 026029. [Google Scholar] [CrossRef] [PubMed]
  18. Ashraf, H.; Waris, A.; Gilani, S.O.; Shafiq, U.; Iqbal, J.; Kamavuako, E.N.; Berrouche, Y.; Brüls, O.; Boutaayamou, M.; Niazi, I.K. Optimizing the performance of convolutional neural network for enhanced gesture recognition using sEMG. Sci. Rep. 2024, 14, 2020. [Google Scholar] [CrossRef] [PubMed]
  19. Jiang, B.; Wu, H.; Xia, Q.; Xiao, H.; Peng, B.; Wang, L.; Zhao, Y. An efficient surface electromyography-based gesture recognition algorithm based on multiscale fusion convolution and channel attention. Sci. Rep. 2024, 14, 30867. [Google Scholar] [CrossRef] [PubMed]
  20. Xie, P.; Xu, M.; Shen, T.; Chen, J.; Jiang, G.; Xiao, J.; Chen, X. A channel-fused gated temporal convolutional network for EMG-based gesture recognition. Biomed. Signal Process. Control 2024, 95, 106408. [Google Scholar] [CrossRef]
  21. Zhang, Z.; Liu, S.; Wang, Y.; Song, W.; Zhang, Y. Online cross session electromyographic hand gesture recognition using deep learning and transfer learning. Eng. Appl. Artif. Intell. 2024, 127, 107251. [Google Scholar] [CrossRef]
  22. Bai, S.; Kolter, J.Z.; Koltun, V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv 2018, arXiv:1803.01271. [Google Scholar] [CrossRef]
  23. Wang, Y.; Zhao, P.; Zhang, Z. A deep learning approach using attention mechanism and transfer learning for electromyographic hand gesture estimation. Expert Syst. Appl. 2023, 234, 121055. [Google Scholar] [CrossRef]
  24. Chen, C.; Yu, Y.; Sheng, X.; Meng, J.; Zhu, X. Real-time hand gesture recognition by decoding motor unit discharges across multiple motor tasks from surface electromyography. IEEE Trans. Biomed. Eng. 2023, 70, 2058–2068. [Google Scholar] [CrossRef] [PubMed]
  25. Weng, W.; Gu, Y.; Ma, Y.; Liu, Y.; Zhang, Y.; Chen, Y. State Mamba: Spatiotemporal EEG state-space model with dynamic brain alignment for cross-subject representation. In Proceedings of the AAAI Conference on Artificial Intelligence; Association for the Advancement of Artificial Intelligence: Washington, DC, USA, 2026; Volume 40, pp. 17850–17858. [Google Scholar] [CrossRef]
  26. Gu, A.; Dao, T. Mamba: Linear-time sequence modeling with selective state spaces. In Proceedings of the First Conference on Language Modeling, Philadelphia, PA, USA, 7–9 October 2024; Available online: https://openreview.net/forum?id=tEYskw1VY2 (accessed on 24 July 2026).
  27. Qiang, Y.; Dong, X.; Liu, X.; Yang, Y.; Hu, F.; Wang, R. ECGMamba: Towards ECG classification with state space models. In Proceedings of the 2024 IEEE International Conference on Bioinformatics and Biomedicine, Lisbon, Portugal, 3–6 December 2024; pp. 6498–6505. [Google Scholar] [CrossRef]
  28. Ma, X.; Zhou, C.; Kong, X.; He, J.; Gui, L.; Neubig, G.; May, J.; Zettlemoyer, L. Mega: Moving average equipped gated attention. In Proceedings of the International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023; Available online: https://openreview.net/forum?id=qNLe3iq2El (accessed on 24 July 2026).
  29. Sun, Y.; Dong, L.; Huang, S.; Ma, S.; Xia, Y.; Xue, J.; Wang, J.; Wei, F. Retentive network: A successor to Transformer for large language models. arXiv 2023, arXiv:2307.08621. [Google Scholar] [CrossRef]
  30. Wang, Z.; Yao, J.; Xu, M.; Jiang, M.; Su, J. Transformer-based network with temporal depthwise convolutions for sEMG recognition. Pattern Recognit. 2024, 145, 109967. [Google Scholar] [CrossRef]
  31. Zabihi, S.; Rahimian, E.; Asif, A.; Mohammadi, A. TraHGR: Transformer for hand gesture recognition via electromyography. IEEE Trans. Neural Syst. Rehabil. Eng. 2023, 31, 4211–4224. [Google Scholar] [CrossRef] [PubMed]
  32. Montazerin, M.; Rahimian, E.; Naderkhani, F.; Atashzar, S.F.; Yanushkevich, S.; Mohammadi, A. Transformer-based hand gesture recognition from instantaneous to fused neural decomposition of high-density EMG signals. Sci. Rep. 2023, 13, 11000. [Google Scholar] [CrossRef] [PubMed]
  33. Liu, X.; Hu, L.; Tie, L.; Li, J.; Wang, X.; Liu, X. Integration of convolutional neural network and Vision Transformer for gesture recognition using sEMG. Biomed. Signal Process. Control 2024, 98, 106686. [Google Scholar] [CrossRef]
  34. Lin, C.; Zhang, X.; Zhao, C. A parallel and efficient Transformer deep learning network for continuous estimation of hand kinematics from electromyographic signals. Sci. Rep. 2025, 15, 36150. [Google Scholar] [CrossRef] [PubMed]
  35. Lin, C.; Xiao, Q.; Zhao, P. Multi-scale attention patching encoder network: A deployable model for continuous estimation of hand kinematics from surface electromyographic signals. J. Neuroeng. Rehabil. 2024, 21, 231. [Google Scholar] [CrossRef] [PubMed]
  36. Guo, W.; Qiao, Z.; Sun, Y.; Xu, Y.; Xiong, H. Revisiting noise resilience strategies in gesture recognition: Short-term enhancement in sEMG analysis. In Proceedings of the 42nd International Conference on Machine Learning, Vancouver, Canada, 13–19 July 2025; Proceedings of Machine Learning Research; MLResearch Press: Cambridge, MA, USA, 2025; Volume 267, pp. 20903–20920. Available online: https://proceedings.mlr.press/v267/guo25h.html (accessed on 24 July 2026).
  37. Shin, J.; Miah, A.S.M.; Konnai, S.; Takahashi, I.; Hirooka, K. Hand gesture recognition using sEMG signals with a multi-stream time-varying feature enhancement approach. Sci. Rep. 2024, 14, 22061. [Google Scholar] [CrossRef] [PubMed]
  38. Tacca, N.; Dunlap, C.; Donegan, S.P.; Hardin, J.O.; Meyers, E.; Darrow, M.J.; Colachis, S., IV; Gillman, A.; Friedenberg, D.A. Wearable high-density EMG sleeve for complex hand gesture classification and continuous joint angle estimation. Sci. Rep. 2024, 14, 18564. [Google Scholar] [CrossRef] [PubMed]
  39. Chan, A.D.C.; Green, G.C. Myoelectric Control Development Toolbox. In Proceedings of the 30th Conference of the Canadian Medical and Biological Engineering Society, Toronto, ON, Canada, 16–19 June 2007; Paper M0100; Canadian Medical and Biological Engineering Society: Ottawa, ON, Canada, 2007; Available online: https://sce.carleton.ca/faculty/chan/matlab/myoelectric%20control%20development%20toolbox.pdf (accessed on 17 July 2026).
  40. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0 Contributors. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed]
  41. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32; Curran Associates, Inc.: New York, NY, USA, 2019; Volume 32, pp. 8024–8035. Available online: https://papers.nips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library (accessed on 25 July 2026).
Figure 1. Seed-0 descriptive performance across available causal context lengths: (a) Accuracy; (b) Macro-F1. Points denote five-fold means for CNN, CT, and CEMA. Vertical reference lines indicate the 300, 500, and 800 ms primary context anchors used for five-seed inference.
Figure 1. Seed-0 descriptive performance across available causal context lengths: (a) Accuracy; (b) Macro-F1. Points denote five-fold means for CNN, CT, and CEMA. Vertical reference lines indicate the 300, 500, and 800 ms primary context anchors used for five-seed inference.
Applsci 16 07862 g001
Figure 2. Learned single-scale EMA kernel profiles for the seed-0 CEMA checkpoints at 300, 500, and 800 ms. The green dashed, red dotted, and blue solid curves correspond to m = 2 (300 ms), m = 4 (500 ms), and m = 7 (800 ms), respectively. Gray dashed vertical lines and open circles indicate the maximum buffered spans, whereas colored vertical lines and filled circles indicate the continuous 5%-relative-weight horizons. Because the EMA state was initialized to zero at each buffered-sequence boundary, contributions beyond the available input buffer were not accessible during inference.
Figure 2. Learned single-scale EMA kernel profiles for the seed-0 CEMA checkpoints at 300, 500, and 800 ms. The green dashed, red dotted, and blue solid curves correspond to m = 2 (300 ms), m = 4 (500 ms), and m = 7 (800 ms), respectively. Gray dashed vertical lines and open circles indicate the maximum buffered spans, whereas colored vertical lines and filled circles indicate the continuous 5%-relative-weight horizons. Because the EMA state was initialized to zero at each buffered-sequence boundary, contributions beyond the available input buffer were not accessible during inference.
Applsci 16 07862 g002
Figure 3. Fold-first five-seed accuracy effects at the primary context anchors. (a) Paired CEMA–CNN and CEMA–CT accuracy differences at 300, 500, and 800 ms. (b) Frozen-checkpoint accuracy differences for reset-at-current-window and zero-memory relative to normal chronological memory. Points denote mean paired differences across five held-out subject folds after averaging the five training seeds within each fold; horizontal bars denote two-sided 95% paired-t confidence intervals. Vertical lines indicate zero difference.
Figure 3. Fold-first five-seed accuracy effects at the primary context anchors. (a) Paired CEMA–CNN and CEMA–CT accuracy differences at 300, 500, and 800 ms. (b) Frozen-checkpoint accuracy differences for reset-at-current-window and zero-memory relative to normal chronological memory. Points denote mean paired differences across five held-out subject folds after averaging the five training seeds within each fold; horizontal bars denote two-sided 95% paired-t confidence intervals. Vertical lines indicate zero difference.
Applsci 16 07862 g003
Figure 4. Stream-level transition sensitivity at the primary context anchors. (a) B100 boundary recall and (b) absolute matched-boundary delay for CT and CEMA at 300, 500, and 800 ms. Values are fold-first five-seed summaries across the five held-out subject folds. Error bars denote SD across the five seed-averaged folds. Stream-level metrics were computed by stitching contiguous saved prediction windows within each recording; model inference remained full-buffer.
Figure 4. Stream-level transition sensitivity at the primary context anchors. (a) B100 boundary recall and (b) absolute matched-boundary delay for CT and CEMA at 300, 500, and 800 ms. Values are fold-first five-seed summaries across the five held-out subject folds. Error bars denote SD across the five seed-averaged folds. Stream-level metrics were computed by stitching contiguous saved prediction windows within each recording; model inference remained full-buffer.
Applsci 16 07862 g004
Table 1. Matched model architectures and causality audit.
Table 1. Matched model architectures and causality audit.
ComponentCNNCTCEMA
Input8-channel sEMG8-channel sEMG8-channel sEMG
EncoderTwo causal Conv1D (8→32→16)Two causal Conv1D (8→32→16)Two causal Conv1D (8→32→16)
Temporal moduleIdentity pathTwo causally masked Transformer layersSingle-scale causal EMA latent memory
DecoderUpsampling classification headUpsampling classification headUpsampling classification head
Output7-class dense logits7-class dense logits7-class dense logits
Learnable parameters640712,9676968
Note. sEMG, surface electromyography; CNN, causal convolutional neural network; CT, causal CNN–Transformer; EMA, exponential moving average; CEMA, causal CNN with EMA memory; Conv1D, one-dimensional convolution.
Table 2. Paired accuracy differences at the primary context anchors, with five training seeds averaged within each fold.
Table 2. Paired accuracy differences at the primary context anchors, with five training seeds averaged within each fold.
Context
(ms)
ContrastMean
Difference (pp)
95% CICohen’s dzHolm-Adjusted p Value
300CEMA−CNN+9.105[+8.994, +9.215]102.45p < 0.001
300CEMA−CT+0.209[−0.467, +0.885]0.38p = 0.877
500CEMA−CNN+9.313[+8.721, +9.905]19.53p < 0.001
500CEMA−CT−0.240[−1.141, +0.661]−0.33p = 0.877
800CEMA−CNN+9.657[+9.067, +10.246]20.34p < 0.001
800CEMA−CT−0.715[−1.730, +0.300]−0.87p = 0.367
Note. Values are paired accuracy differences across five seed-averaged held-out folds. For each fold, the five training-seed differences were averaged before inference; the 25 seed × fold values were not treated as independent observations. Confidence intervals are two-sided 95% paired-t intervals; p values are two-sided paired-t results Holm-adjusted jointly across the six anchor contrasts. Very large d z values for CEMA−CNN reflect the small between-fold variability of the seed-averaged paired differences; interpretation emphasizes the mean differences and confidence intervals.
Table 3. Single-seed trained history-content ablations at the primary context anchors.
Table 3. Single-seed trained history-content ablations at the primary context anchors.
m ConditionAccuracyMacro-F1
2Chronological history76.4776.47
2No history68.8468.83
2Window-shuffled history76.3776.26
2Masked history69.0869.07
4Chronological history76.5476.42
4No history68.8468.83
4Window-shuffled history76.2676.17
4Masked history69.2469.21
7Chronological history77.2277.09
7No history68.8468.83
7Window-shuffled history75.2975.21
7Masked history69.4369.47
Note. Values are seed-0 five-fold mean accuracy and Macro-F1 (%). Conditions may differ in trained parameters or optimization trajectory and should not be interpreted as frozen-checkpoint interventions.
Table 4. Fold-first five-seed paired effects of frozen-checkpoint memory interventions relative to normal chronological memory.
Table 4. Fold-first five-seed paired effects of frozen-checkpoint memory interventions relative to normal chronological memory.
Context
(ms)
ContrastΔ Accuracy (pp)
[95% CI]
Holm-Adjusted p ValueΔ Macro-F1 (pp)
[95% CI]
Holm-Adjusted p Value
300Reset−Normal−10.928 [−11.722, −10.134]p < 0.001−11.218 [−12.142, −10.293]p < 0.001
300Zero-memory−Normal−43.028 [−45.319, −40.738]p < 0.001−51.990 [−54.386, −49.593]p < 0.001
500Reset−Normal−14.791 [−16.143, −13.439]p < 0.001−15.925 [−17.775, −14.074]p < 0.001
500Zero-memory−Normal−39.451 [−43.407, −35.495]p < 0.001−48.708 [−53.317, −44.099]p < 0.001
800Reset−Normal−17.009 [−18.387, −15.631]p < 0.001−18.063 [−19.356, −16.770]p < 0.001
800Zero-memory−Normal−38.485 [−41.311, −35.659]p < 0.001−47.405 [−50.772, −44.038]p < 0.001
Note. Differences are intervention minus normal and are based on five seed-averaged held-out folds. The five training-seed differences were averaged within-fold before inference; 25 seed × fold values were not treated as independent. Confidence intervals are two-sided 95% paired-t intervals. p values are Holm-adjusted separately across six context-by-intervention contrasts for accuracy and Macro-F1. These frozen interventions can introduce distribution shift and are diagnostic rather than new training conditions.
Table 5. Representative window-internal B50 accuracy–boundary trade-offs at 300 and 800 ms.
Table 5. Representative window-internal B50 accuracy–boundary trade-offs at 300 and 800 ms.
Model
Context
Accuracy
(%)
B50
Recall
(%)
Missed
Transitions
(%)
Absolute
Delay
(ms)
False
Transitions
(per 1000)
Stable
Flips
(per 1000)
CT raw, ( m = 2 ) 76.156.543.515.37.047.26
CEMA raw, ( m = 2 ) 76.543.656.416.77.037.22
CNN causal median, ( m = 2 ) 76.628.971.120.82.352.45
CT raw, ( m = 7 ) 77.259.140.915.06.296.51
CEMA raw, ( m = 7 ) 77.244.555.514.88.348.54
Note. B50 denotes one-to-one boundary matching within ±50 ms and serves as the primary localization-sensitive endpoint.
Table 6. Stream-level B50/B100 precision, recall, and F1 at the primary context anchors.
Table 6. Stream-level B50/B100 precision, recall, and F1 at the primary context anchors.
Context (ms)ModelB50
Precision
B50
Recall
B50
F1
B100
Precision
B100
Recall
B100
F1
300CNN0.007 ± 0.0010.982 ± 0.0050.013 ± 0.0010.007 ± 0.0010.996 ± 0.0020.014 ± 0.001
300CT0.024 ± 0.0040.722 ± 0.0340.046 ± 0.0070.030 ± 0.0040.893 ± 0.0200.057 ± 0.008
300CEMA0.022 ± 0.0030.601 ± 0.0220.042 ± 0.0050.030 ± 0.0040.844 ± 0.0150.059 ± 0.008
500CNN0.007 ± 0.0010.981 ± 0.0040.013 ± 0.0010.007 ± 0.0010.996 ± 0.0020.014 ± 0.001
500CT0.025 ± 0.0040.716 ± 0.0330.049 ± 0.0080.031 ± 0.0050.880 ± 0.0200.060 ± 0.010
500CEMA0.019 ± 0.0030.526 ± 0.0370.036 ± 0.0050.027 ± 0.0040.751 ± 0.0280.052 ± 0.008
800CNN0.007 ± 0.0010.982 ± 0.0050.014 ± 0.0010.007 ± 0.0010.996 ± 0.0020.014 ± 0.001
800CT0.027 ± 0.0050.731 ± 0.0370.052 ± 0.0090.033 ± 0.0050.889 ± 0.0200.063 ± 0.009
800CEMA0.018 ± 0.0030.519 ± 0.0430.034 ± 0.0050.025 ± 0.0040.724 ± 0.0330.048 ± 0.008
Note. Values are mean ± SD across five held-out subject folds after the five training seeds were averaged within each fold. B50 and B100 use greedy closest one-to-one matching within ±50 and ±100 ms, respectively. Precision, recall, and F1 are proportions.
Table 7. Full-buffer inference cost and model size at 300, 500, and 800 ms.
Table 7. Full-buffer inference cost and model size at 300, 500, and 800 ms.
ModelHost-Wall Time (ms), 300/500/800Forward MACs (M), 300/500/800Learnable ParametersPersistent Buffer (KiB)Checkpoint (KiB)
CNN0.311/0.308/0.3070.623/1.038/1.66164070.0029.49
CT1.206/1.193/1.1881.444/2.806/5.45012,9673125.003189.05
CEMA0.521/0.515/0.5150.751/1.352/2.40369680.0033.11
Note. Context-specific values are ordered 300/500/800 ms. Host-wall times are five-checkpoint means at batch size 1. MACs include the causal encoder, temporal path, and classifier. CT’s positional encoding is a nonlearnable persistent buffer and is excluded from its learnable parameter count.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Luo, X.; Luo, Q.; Zhang, Y. Single-Scale EMA Latent Memory for Strictly Causal Dense Arm-Motion Recognition from Multi-Channel sEMG. Appl. Sci. 2026, 16, 7862. https://doi.org/10.3390/app16157862

AMA Style

Luo X, Luo Q, Zhang Y. Single-Scale EMA Latent Memory for Strictly Causal Dense Arm-Motion Recognition from Multi-Channel sEMG. Applied Sciences. 2026; 16(15):7862. https://doi.org/10.3390/app16157862

Chicago/Turabian Style

Luo, Xu, Qianxiang Luo, and Yan Zhang. 2026. "Single-Scale EMA Latent Memory for Strictly Causal Dense Arm-Motion Recognition from Multi-Channel sEMG" Applied Sciences 16, no. 15: 7862. https://doi.org/10.3390/app16157862

APA Style

Luo, X., Luo, Q., & Zhang, Y. (2026). Single-Scale EMA Latent Memory for Strictly Causal Dense Arm-Motion Recognition from Multi-Channel sEMG. Applied Sciences, 16(15), 7862. https://doi.org/10.3390/app16157862

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop