Next Article in Journal
Augmentative and Alternative Communication as an Ecological Window on Neglect-Related Spatial Asymmetry After Hemorrhagic Stroke: A Longitudinal Case Report
Previous Article in Journal
Digital-Supported Delivery of Behavioural Therapy for Patients with Tic Disorders: A Narrative Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Spec-RWKV: A Spectrum-Guided Multi-Scale Recurrent Modeling Framework for Multi-Center Resting-State fMRI-Assisted Diagnosis

College of Information Engineering, Shanghai Maritime University, Shanghai 201306, China
*
Author to whom correspondence should be addressed.
Brain Sci. 2026, 16(5), 455; https://doi.org/10.3390/brainsci16050455
Submission received: 23 March 2026 / Revised: 20 April 2026 / Accepted: 22 April 2026 / Published: 24 April 2026

Highlights

What are the main findings?
  • Spec-RWKV showed competitive diagnostic performance on ABIDE-I and ADHD-200, with relatively consistent results under leave-one-site-out evaluation and simulated TR perturbations.
  • Model-derived importance maps were concentrated in the default mode and frontoparietal networks, and ASD-related spectral differences were more evident in slower frequency bands.
What are the implications of the main findings?
  • Defining temporal dynamics in physical time may help make multi-site rs-fMRI modeling less sensitive to acquisition differences in TR.
  • Joint temporal–spectral modeling could provide cross-site analyses with intermediate patterns that remain easier to inspect and interpret.

Abstract

Background: Multi-center resting-state functional magnetic resonance imaging (rs-fMRI) is important for neurodevelopmental disorder diagnosis, but cross-site differences in repetition time (TR) can cause temporal feature misalignment. In addition, blood-oxygenlevel-dependent (BOLD) signals are non-stationary, so disease-related information may be distributed across multiple time scales. Existing methods usually do not explicitly model physical sampling intervals or coordinate temporal and spectral information across scales, which may limit cross-site generalization in heterogeneous multi-center settings. Methods: We propose Spec-RWKV, a spectrum-guided linear recurrent framework for multi-site rs-fMRI diagnosis. It includes three components: PrismTimeMix, which models temporal dynamics using decay rates derived from physical half-lives and converts them adaptively across TRs; a TR-adaptive continuous wavelet transform, which aligns spectral representations across sites by adjusting frequency coverage; and spectrum-guided adaptive temporal aggregation, which uses spectral context to weight temporal features. Results: On ABIDE-I and ADHD-200, Spec-RWKV achieved AUCs of 75.86% and 76.31%, respectively. Under leave-one-site-out validation, it achieved the best mean AUC on ABIDE-I and the best mean accuracy and AUC on ADHD-200. Conclusions: Spec-RWKV explicitly models sampling-rate differences and multi-scale spectral structure, with results supporting strong cross-site generalizability.

1. Introduction

Resting-state functional magnetic resonance imaging (rs-fMRI) measures spontaneous brain activity—that is, activity occurring naturally rather than in response to tasks. It relies on blood-oxygen-level-dependent (BOLD) signals, which reflect changes in blood oxygenation as a proxy for neural activity [1]. Neuroimaging biomarkers derived from rs-fMRI—measurable brain signatures associated with a clinical condition—show promise for neurodevelopmental disorders such as autism spectrum disorder (ASD) and attention-deficit/hyperactivity disorder (ADHD) [2]. However, single-site studies are often limited in sample size and demographic diversity. This makes it difficult to establish reliable and generalizable biomarkers. Multi-site datasets, such as ABIDE [3] and ADHD-200 [4], address this by pooling data across institutions. Larger and more diverse samples provide a more realistic test bed for evaluating generalizability. Nevertheless, multi-site data introduces substantial variability in scanners and acquisition protocols. When sample sizes are small and the disease signal is weak relative to acquisition-related variance, models are prone to learning spurious correlations—capturing patterns tied to equipment or protocol differences rather than to the disorder itself [5,6,7].
Among these sources of heterogeneity, variation in repetition time (TR)—the interval between successive volume acquisitions—directly affects temporal modeling. When TR differs across sites, the same number of time steps spans different physical durations. Discrete-step temporal features thus become physiologically inconsistent across cohorts. Different TRs correspond to different sampling rates and, consequently, different Nyquist frequencies. Sites with lower sampling rates may under-sample high-frequency physiological signals, causing cardiac and respiratory rhythms to alias into the BOLD signal in site-dependent ways. This can systematically alter commonly used metrics, including functional connectivity strength and low-frequency oscillation amplitude [8,9]. The problem is compounded by the non-stationary nature of BOLD signals [10]. Disease-related information may appear as brief transient events lasting a few seconds, or as slower shifts spanning tens of seconds. Capturing both requires modeling at multiple temporal scales. When temporal scales are defined in discrete time steps rather than physical duration, the same scale index corresponds to different physiological windows across sites, making multi-scale modeling inconsistent.
Existing methods address these challenges only partially. The most common strategy for handling TR differences is to resample all signals to a uniform temporal resolution during preprocessing [11]. However, interpolation can introduce artifacts and alter the autocorrelation structure of the signal [8]. Resampling can also change the spectral aliasing profile and redistribute power across low-frequency bands [9]. These preprocessing strategies, therefore, do not fully resolve the underlying inconsistency in physical time scales. More recent approaches introduce time awareness through neural ordinary differential equations [12] or continuous-time positional encoding [13]. These methods address part of the problem, but they share a common limitation: TR information is typically injected only at the input stage and does not propagate into the recurrent dynamics that accumulate temporal evidence. Recurrent models that apply attention over sliding-window dynamic functional connectivity sequences [14] and prompt-based frameworks that augment graph networks with multi-level knowledge [15] have achieved competitive results on multi-site benchmarks, yet neither explicitly conditions its temporal or spectral representations on the acquisition TR.
A related gap exists in multi-scale and spectral modeling. Fixed-window methods segment data into a fixed number of time steps, so the same window spans different physical durations at different TRs. Wavelet-based methods with uniform decomposition scales ignore the fact that the meaningful frequency range depends on the sampling rate, which varies with TR. Most existing fusion strategies combine spectral and temporal features only at a late stage, so the two branches cannot inform each other during representation learning.
Continuous-time modeling, adaptive spectral analysis, and cross-modal fusion have each been explored separately. However, we are not aware of a framework that jointly addresses these aspects. In particular, TR heterogeneity is rarely treated as an explicit constraint on both temporal and spectral modeling. To address this, we propose Spec-RWKV for multi-site rs-fMRI diagnosis. The framework combines three core components: TR-aware temporal modeling, sampling-rate-adaptive spectral analysis, and spectrum-guided temporal aggregation.
At its core, Spec-RWKV builds on Receptance Weighted Key Value (RWKV) [16], a linear-complexity recurrent attention mechanism. Standard self-attention compares all time-step pairs and scales quadratically with sequence length. RWKV instead accumulates information incrementally at linear cost. Building on this backbone, we introduce a multi-scale decay mechanism called PrismTimeMix. Each decay rate in PrismTimeMix corresponds to a specific BOLD frequency band and is defined as a physical half-life measured in seconds. Crucially, these decay rates are then converted to per-step parameters using each sample’s actual TR, so the same physical time scale is preserved regardless of how densely the signal was sampled. This means TR adaptation is no longer confined to input embeddings or positional encoding. Instead, it directly shapes how the model accumulates and forgets information over time. On the spectral side, we introduce a TR-adaptive continuous wavelet transform (CWT). CWT decomposes a signal into frequency components at each time point. Unlike fixed-scale decomposition, our variant adjusts its frequency coverage and scale resolution per sample to match each site’s actual sampling rate, keeping frequency representations aligned across sites. Finally, we introduce a pooling module that uses spectral features to reweight temporal information across time steps. We call this module Spectrum-guided Adaptive Temporal Aggregation (SATA). Rather than keeping frequency and temporal branches independent until a final fusion step, this design lets spectral context directly determine which time steps matter most for prediction.
The main contributions of this work are summarized as follows:
  • We propose Spec-RWKV, a linear recurrent framework in which each temporal decay rate corresponds to a specific BOLD oscillatory band. The decay rates are defined as physical half-lives in seconds and converted to per-step values using each sample’s TR. This design embeds TR adaptation directly into the recurrent dynamics, ensuring that the model operates in consistent physical time units across sites with different TRs.
  • We design a frequency-temporal coordination mechanism in which TR-adaptive spectral features serve two roles: aligning frequency-domain representations across sites, and guiding temporal aggregation weights. This creates a direct information flow from the spectral branch to the temporal branch.
  • On ABIDE-I and ADHD-200, Spec-RWKV achieves the area under the receiver operating characteristic curve (AUC) values of 75.86% and 76.31%, respectively. Under leave-one-site-out evaluation, it attains the best aggregate AUC on ABIDE-I and the best aggregate accuracy and AUC on ADHD-200 among the evaluated methods, indicating competitive cross-site robustness under this stricter setting.
The remainder of this paper is organized as follows: Section 2 introduces data and methods; Section 3 presents experimental results and ablation analysis; Section 4 discusses mechanistic interpretation and limitations; Section 5 concludes the paper.

2. Materials and Methods

2.1. Datasets

2.1.1. ABIDE-I

ABIDE-I [3] is a multi-site open-access dataset from the International Neuroimaging Data-sharing Initiative (INDI), comprising rs-fMRI, T1 structural images, and phenotypic data from 1112 individuals across 20 international sites (539 ASD, 573 typically developing controls; ages 6–64, mean ≈17 years). We use preprocessed data from the ABIDE Preprocessed Connectomes Project (PCP) with the CPAC pipeline, without band-pass filtering or global signal regression. Subjects were excluded if any ROI had a constant (all-zero) time series. After quality control, 871 subjects (403 ASD/468 controls) remained, covering all 20 sites (Table 1).
The dataset exhibits substantial heterogeneity. Site-level sample sizes range from 11 to 172, and class balance varies considerably (e.g., USM has 43 ASD vs. 24 controls, while UM_1 has 34 ASD vs. 52 controls). TR values range from 1.5 to 3.0 s across sites, reflecting diverse acquisition protocols. This variation poses a key challenge for cross-site generalization, motivating the protocol-invariant design of our method.

2.1.2. ADHD-200

ADHD-200 [4] is a multi-site dataset released for the 2011 ADHD-200 Global Competition, containing rs-fMRI, structural MRI, and phenotypic information from 776 individuals across 9 sites. The original labels distinguish three ADHD subtypes (Combined, Hyperactive/Impulsive, and Inattentive); we merge all subtypes into a single ADHD group for binary classification. After quality control, 635 subjects from 9 sites remain. Pittsburgh and WashU contain only control subjects, which affects how the leave-one-site-out evaluation is designed for these sites. Site-wise sample statistics are reported in Table 2.
Both datasets pool data from multiple sites with considerable differences in acquisition protocols—including TR, field strength, pulse sequence, and spatial resolution [17]. These variations affect the BOLD signal’s spatiotemporal properties and introduce systematic site differences. Among protocol factors, TR is especially critical: it sets the BOLD sampling rate and the effective Nyquist limit, so TR differences change how physiological noise aliases into the data and influence frequency-sensitive rs-fMRI measures [9]. Broader hardware and protocol effects can confound models and limit generalization to new sites [7]. We therefore treat TR variation as a key design constraint, combining protocol-aware preprocessing with protocol-invariant modeling to minimize cross-site mismatch. Figure 1 shows that TR spans 1.5–3.0 s in ABIDE-I and is more narrowly distributed (1.5–2.5 s) in ADHD-200.

2.2. Data Preprocessing

For the ABIDE-I and ADHD-200 cohorts, we constructed atlas-based region-of-interest (ROI) representations using two parcellation schemes: the Schaefer 7-network atlas (400 ROIs) [18] and the AAL atlas (116 ROIs) [19]. The Schaefer atlas divides the cortex functionally, aligned with seven canonical brain networks [20]. The AAL atlas uses anatomical boundaries instead. Using both atlases allows us to test whether findings hold across different parcellation scales and definitions.
Under each atlas, we represent each subject’s rs-fMRI data as a time-series matrix X R T × N , where N is the number of ROIs and T is the sequence length. We z-score normalize each ROI time series independently to reduce amplitude differences across subjects and sites:
x ˜ n , t = x n , t μ n σ n + ϵ ,
where μ n and σ n are the mean and standard deviation of the n-th ROI time series, and ϵ is a small constant for numerical stability. Subjects with any constant-valued ROI (zero variance) are excluded.

2.3. Spec-RWKV Framework

2.3.1. Overall Architecture

Spec-RWKV uses a dual-pathway architecture with a temporal backbone and a spectral branch (Figure 2). Given an ROI time series segment X R L × N , the model projects each ROI’s features into a shared hidden space, forming token representations. The temporal backbone models dependencies across multiple time scales. Meanwhile, the spectral branch extracts a spectral context vector whose frequency axes are aligned to physical units (Hz) using each sample’s TR.
The spectral context vector s is computed once per segment and conditions the temporal pathway at two points. First, it modulates the multi-scale decay rates in PrismTimeMix. This controls how quickly past information decays, allowing memory dynamics to adapt to each sample’s spectral profile. Second, it constructs the query in Spectrum-guided Adaptive Temporal Aggregation (SATA), guiding how temporal hidden states are aggregated.
For long sequences, Spec-RWKV operates on fixed-length segments, producing segment-level predictions. These are aggregated to subject-level decisions by averaging segment logits. During training, segments are selected stochastically to improve robustness. At inference, selection is deterministic for stable evaluation. The following subsections describe each component in detail.

2.3.2. Temporal Backbone: RWKV Recurrent Attention and PrismTimeMix

The temporal backbone consists of L b stacked PrismRWKV blocks. Each block uses a pre-LayerNorm residual structure (normalization applied before each main operation):
h ( ) = h ( 1 ) + TimeMix LN ( h ( 1 ) ) , h ( ) = h ( ) + ChannelMix LN ( h ( ) ) .
Here h ( ) is the hidden state at layer . We use RWKV as the temporal backbone because it processes time series with linear complexity, making it efficient for moderately long sequences with limited training samples. Figure 3 shows the internal structure of a single PrismRWKV block.
Each PrismRWKV block separates temporal mixing from feature mixing through two residual stages. This is similar to standard Transformer blocks, but uses linear-complexity recurrence instead of self-attention. The first stage applies PrismTimeMix to model temporal dependencies. The second applies ChannelMix (a gated feedforward layer) to combine information across features.
Standard RWKV uses a single decay rate, which limits its ability to capture both fast transients and slow drifts in BOLD signals. PrismTimeMix addresses this by maintaining multiple parallel memory channels. Each channel forgets information at a rate tied to a specific BOLD frequency band (e.g., slow-5 vs. slow-4). Crucially, these decay rates are defined in seconds rather than in discrete time steps. This ensures that the same physical memory span is preserved regardless of TR.
Formally, PrismTimeMix maintains K parallel scale heads, each associated with a physical half-life τ k (seconds). The corresponding per-second and per-step decay rates are defined as
α k ( sec ) = 2 1 / τ k , α k ( step ) = α k ( sec ) TR ,
where TR is the sampling interval (in seconds) of the current sample. This conversion ensures that each scale head maintains the same physical time constant across sites, regardless of sampling rate.
The spectral context vector s further modulates these decay rates, allowing temporal memory to adapt to each sample’s spectral characteristics (Figure 4):
α k ( sec , eff ) = σ logit k + γ · tanh [ W r LN ( W p s ) ] k , k = 1 , , K ,
α k ( step , eff ) = α k ( sec , eff ) TR , w k = log log ( α k ( step , eff ) ) .
Each scale head then performs recurrent attention using its decay parameter w k . The resulting responses are fused across scales. The key point is that spectral information shapes the temporal memory window at every recurrent step, not just at input or output.
Without explicit constraints, gradient-based optimization may concentrate all weights on a single scale head. This would reduce PrismTimeMix to a single-scale model. To prevent this, we apply three auxiliary losses during training. Let g b , k denote the normalized mixing weight of the k-th scale head for the b-th sample. The entropy term is defined as
L ent = 1 B b = 1 B k = 1 K g b , k log ( g b , k + ϵ ) ,
which discourages premature concentration on a single scale head. In addition, we compute the fraction of spectral energy below 0.08 Hz to encourage the model to assign more weight to longer-timescale heads when low-frequency activity dominates:
r low = s : f ( s ) 0.08 Hz E s s E s + ε , L guide = MSE ( g ¯ , r low ) ,
where E s denotes spectral energy at scale s and g ¯ is the average weight assigned to the longer-timescale heads. Finally, a subsequence consistency term ensures that predictions from the full sequence and from randomly sampled subsequences agree.

2.3.3. Spectral Branch and Spectrum-Guided Temporal Aggregation

The spectral branch aligns time–frequency representations from different sites to a common physical frequency scale. Because BOLD signals are non-stationary, static spectral summaries are insufficient to characterize their time-varying oscillatory patterns. We therefore use the continuous wavelet transform (CWT), which provides a joint time–frequency representation [21,22]. CWT preserves both frequency and temporal information, making it suitable for non-stationary BOLD signals.
Rather than using fixed-frequency indices, the spectral branch adapts its frequency coverage to each sample’s TR. This reduces protocol-induced spectral mismatch across sites. Let r TR = TR base / TR current denote the ratio between a reference TR and the current sample’s TR. The adaptive upper frequency limit and number of CWT scales are then
f max adapt = min f max base · r TR , 0.3 , n scales adapt = min n scales base · r TR , 12 .
In practical terms, a site with TR = 1.5 s can resolve higher frequencies than a site with TR = 3.0 s. The adaptive mechanism accounts for this. When the sampling rate is higher, it widens the frequency range and adds finer scales. When the rate is lower, it narrows the range and uses coarser scales. This means that each scale index approximately corresponds to the same physical frequency across sites. Figure 5 and Figure 6 show the complete processing pipeline and the resulting frequency alignment.
At the aggregation stage, we introduce Spectrum-guided Adaptive Temporal Aggregation (SATA), a pooling module that uses spectral context to combine temporal hidden states across time steps. The intuition is that not all time steps in a resting-state scan are equally informative. Some may capture transient neural events relevant to the disorder, while others may be dominated by noise or motion. SATA lets the spectral branch determine which time steps to emphasize. Formally,
q = W q ( s + β g f ) , k t = W k h t ,
α = softmax K q D s Δ L , z time = t = 1 L α t h t ,
where K = [ k 1 , , k L ] and D s is the query/key dimension. Here g f is an auxiliary spectral summary projected to the query space, biasing aggregation toward spectrally salient time steps. In effect, SATA upweights time steps whose temporal content is most consistent with the dominant spectral cues.
The temporal representation z time and spectral context s are then combined through a Gated Fusion Unit (GFU):
z g = σ ( W 1 z time + W 2 s ) , h fused = LN z g z time + ( 1 z g ) s ,
where z g is the element-wise gating weight. Each feature dimension independently balances temporal and spectral contributions, allowing the model to emphasize whichever source is more informative. Figure 7 illustrates the mechanisms of SATA and GFU.

2.3.4. Training Objectives and Optimization Strategy

The training objective combines a classification loss with auxiliary regularization terms. For classification, we use Asymmetric Focal Loss (AFL) [23], which applies different focusing parameters to positive and negative samples, helping the model attend to the minority class without aggressive resampling. The overall objective is
L = L AFL + λ ent L ent + λ guide L guide + λ cons L cons .
L ent , L guide , and L cons encourage scale diversity, spectrum–memory alignment, and consistency between full-sequence and subsequence predictions, respectively. Specifically, L cons encourages two randomly sampled subsequences from the same subject to produce similar latent representations, implemented as L cons = 1 cos ( z 1 , z 2 ) . Optimization uses the Adam optimizer with OneCycle learning-rate scheduling [24].

3. Results

3.1. Experimental Settings and Evaluation Metrics

3.1.1. Experimental Settings

We evaluated diagnostic performance under three protocols: mixed-site 10-fold cross-validation, leave-one-site-out (LOSO) testing, in which one site is held out entirely for testing and the model is trained on all remaining sites, and cross-atlas validation.
In the mixed-site protocol, samples from all sites were pooled and evaluated with stratified 10-fold cross-validation. ABIDE-I included 871 subjects from 20 sites, and ADHD-200 included 635 subjects from nine sites. Each experiment was repeated with five random seeds. The reported results are the mean and standard deviation over 50 test runs.
In the LOSO protocol, one site was held out for testing, and the remaining sites were used for training under the Schaefer atlas. Results were then aggregated across all held-out sites. In the cross-atlas protocol, the mixed-site evaluation was repeated on the AAL atlas with 116 ROIs.
Each fold was trained for 20 epochs without early stopping, and the final checkpoint was used for testing. We optimized the model with Adam and a OneCycle schedule. The maximum learning rate was 10 4 , the initial learning rate was 4 × 10 6 , and the final learning rate was 10 8 . The warm-up phase accounted for the first 30% of the training steps. We set gradient clipping to 1.0, weight decay to 10 3 , and batch size to 32.
During training, we randomly sampled up to two segments of length 64 from each subject. During inference, we evaluated up to six evenly spaced segments with a stride of 48 and averaged their logits for subject-level prediction. The classification loss was AFL, with α = 0.25 , γ + = 1.0 , and γ = 2.0 .
In the TR-adaptive CWT module, we set the reference repetition time to TR base = 2.0 s . This is the most common TR value in both datasets. We set the base upper frequency to f max base = 0.15 Hz and the base number of scales to n scales base = 6 .
PrismTimeMix used K = 4 parallel time-scale heads with physical half-lives τ k { 2 , 8 , 32 , 128 } s . These heads cover both short- and long-range temporal dependencies in the BOLD signal. The spectral modulation strength γ was implemented as a learnable scalar and initialized to zero.
In SATA, we fixed the spectral guidance coefficient at β = 0.1 . This coefficient controls how strongly the auxiliary spectral summary influences the aggregation query. The auxiliary loss weights were set to λ ent = 10 3 , λ guide = 10 3 , and λ cons = 0.5 .
We did not apply over-sampling or under-sampling, including on ADHD-200, where class imbalance was more pronounced. In the LOSO evaluation, we preserved the native site-level class distribution. This includes the Pittsburgh and WashU sites, which contained only control participants after quality control. We handled class imbalance at the loss level rather than by rebalancing the data distribution.
To characterize cross-site behavior more fully, we conducted three supplementary analyses. First, we examined per-site LOSO performance on ABIDE-I, summarized with balanced accuracy (BA) and AUC. Second, we tested whether frozen model embeddings retain site-discriminative information. We used a linear classifier with 5-fold stratified cross-validation and permutation testing. Third, we evaluated robustness to simulated TR changes by resampling time series to target TR values with piecewise linear interpolation.
All experiments were conducted on a single NVIDIA RTX 4080 Super. The model has approximately 12.3M parameters. Single-epoch training takes about 45 s on ABIDE-I and 32 s on ADHD-200. Inference averages approximately 18 ms per sample, with peak memory usage of about 6.2 GB.

3.1.2. Evaluation Metrics

We evaluate model performance with four binary classification metrics: accuracy (ACC), precision, recall, and AUC. Here, TP, TN, FP, and FN denote the counts of true positives, true negatives, false positives, and false negatives, respectively.
Accuracy = T P + T N T P + T N + F P + F N
Precision = T P T P + F P
Recall = T P T P + F N
The area under the receiver operating characteristic curve (AUC),which summarizes how well the model separates the two classes across all possible decision thresholds, measures how well the model discriminates between classes across all decision thresholds. All metrics are reported as mean ± standard deviation over 50 test runs. Statistical significance was assessed with paired t-tests at a threshold of p < 0.05 .

3.2. Baseline Methods

We compared Spec-RWKV with representative baselines from five groups. The traditional baseline was SVM, which used statistical features derived from ROI time series. The recurrent baselines were LSTM [25], CNN-LSTM, and AttnLSTM [14]. AttnLSTM models temporal dependencies in functional-connectivity sequences using attention and LSTM modules. The graph-based baselines were BrainNetCNN [26], PLSNet [27], and MAHGCN [28]. The Transformer-style baselines were SwinT [29], BolT [11], STARFormer [30], and Com-BrainTF [31]. Finally, BrainPrompt [15] is a prompt-based model designed for multi-site neuroimaging classification. Spec-RWKV and BolT operate directly on raw ROI time series. BrainPrompt, AttnLSTM, BrainNetCNN, and SVM rely on functional connectivity or other derived representations. Together, these baselines cover complementary modeling strategies for multi-site rs-fMRI classification.

3.3. Experimental Results

3.3.1. Comparison with Mainstream Methods

Table 3 reports the main comparison on the Schaefer atlas under mixed-site 10-fold cross-validation. On ABIDE-I, Spec-RWKV achieved the best AUC (75.86%), precision (74.97%), and accuracy (73.27%). BrainPrompt, AttnLSTM, BolT, and PLSNet all remained competitive but stayed below Spec-RWKV in AUC. This advantage held across all baseline families, suggesting that the gain is not specific to any single modeling strategy.
On ADHD-200, Spec-RWKV again achieved the best overall performance, with 72.87% accuracy, 74.64% precision, and 76.31% AUC. BrainPrompt and AttnLSTM were both competitive but did not exceed Spec-RWKV in AUC. ADHD-200 has a narrower TR range than ABIDE-I, so the margin attributable to TR-aware modeling may be smaller on this dataset.
Table 4 reports the corresponding results on the AAL atlas. Spec-RWKV again achieved the best overall performance on both datasets. This indicates that the advantage is not tied to a single parcellation scheme.
The LOSO results (Table 5) evaluate a more challenging scenario: the model must generalize to an entirely unseen acquisition site. On ABIDE-I, Spec-RWKV achieved 72.78% accuracy and 75.86% AUC, which was the best aggregate AUC among the evaluated methods and slightly higher than BrainPrompt on both accuracy and AUC. The gap relative to BolT was larger (+5.39 in accuracy and +5.62 in AUC), and BolT does not include explicit TR adaptation.
In mixed-site cross-validation, every site contributes training data, so models may partly learn site-specific patterns. In LOSO, the held-out site is entirely new, and models that have learned such patterns may generalize less well. The overall pattern under LOSO is consistent with the possibility that TR-aware modeling reduces reliance on site-specific variation, although other factors may also contribute.
On ADHD-200, LOSO performance dropped for all methods. This is expected because the dataset has fewer sites and a stronger class imbalance. Pittsburgh and WashU contain only controls, so holding out either site removes a substantial fraction of negative examples from the training set. Even under these conditions, Spec-RWKV achieved the best LOSO accuracy and AUC.

3.3.2. Per-Site Leave-One-Site-Out Performance

We further examined LOSO performance across the 20 held-out ABIDE-I sites. Table 6 reports the mean, standard deviation, and interquartile range (IQR) of balanced accuracy (BA) and AUC across sites, and Table A1 in Appendix A provides the full site-wise results.
Spec-RWKV achieved the highest mean BA with one of the tightest site-level spreads. BolT was competitive in mean AUC but showed a broader, lower BA distribution. BrainPrompt showed improved site-level stability. AttnLSTM exhibited a broader spread than the top performers.
To visualize site-level variability, Figure 8 presents the per-site accuracy and AUC of Spec-RWKV across all 20 held-out ABIDE-I sites. Performance is generally stable for larger sites (e.g., NYU, UM_1, USM), whereas smaller sites exhibit wider confidence intervals. A few sites with atypical class ratios or scanner protocols (e.g., LEUVEN_1, MAX_MUN) show notably lower performance, consistent with the challenges identified in Table 6.

3.3.3. Site Prediction Analysis

We evaluated site information in the learned representations using a 20-way site-prediction task on the ABIDE-I dataset. Each trained model was frozen, and its penultimate representations were extracted for all 871 subjects. A linear classifier was then trained to predict the acquisition site, following the protocol described in Section 3.1.
Table 7 reports balanced accuracy for 20-way site prediction (chance = 5%). AttnLSTM achieved the lowest BA at 8.23%, followed by Spec-RWKV at 12.38%. BolT and BrainPrompt showed substantially higher values. This pattern suggests that Spec-RWKV embeddings retain less site-specific information than those of BolT and BrainPrompt. Combined with its stronger diagnostic performance, the result is consistent with reduced reliance on site-related variation, although it does not by itself identify which disorder-relevant features are being captured.

3.3.4. TR Robustness Analysis

To test whether model outputs remain stable when the temporal resolution changes, we resampled each ABIDE-I time series to simulated TR values of 1.5, 2.0, 2.5, 3.0, and 4.0 s using piecewise linear interpolation and re-ran inference with the trained models. Because this experiment measures output consistency under controlled resampling rather than diagnostic generalization, all 871 subjects were included regardless of their role during training. The absolute AUC values in Table 8 are therefore not directly comparable to the held-out cross-validation results in Table 3; the quantity of interest is the relative variation across TR conditions.
Table 8 shows that Spec-RWKV maintained the most consistent outputs across simulated TR values, with the smallest fluctuation range ( Δ AUC = 0.011 ). AttnLSTM was comparatively stable and consistently outperformed BrainPrompt, which showed a larger drop around TR = 3.0 s .

3.3.5. Ablation Studies

We performed ablation experiments on ABIDE-I and ADHD-200 to examine the contribution of the main temporal–spectral components. We removed PrismTimeMix, the CWT branch, and SATA either individually or jointly. We also evaluated two mechanism variants. No-TR-Adapt replaces TR-adaptive frequency scaling and decay conversion with fixed base-TR behavior. No-Spec-Guide disables spectral-conditioned modulation and spectral-guided aggregation while preserving the recurrent backbone.
Table 9 shows that the full model outperformed all ablated variants on both datasets. Two mechanism-level ablations are informative. Removing TR adaptation (No-TR-Adapt) reduced AUC by 1.94 points on ABIDE-I and 1.52 points on ADHD-200. This pattern is consistent with the view that anchoring decay rates to physical time contributes to discrimination. Removing spectral guidance (No-Spec-Guide) led to larger AUC drops (3.08 points on ABIDE-I and 3.32 points on ADHD-200), suggesting that spectral context provides information not fully captured by the temporal backbone alone.
Among single-component ablations, removing SATA was associated with the largest recall reduction (−3.92 points on ABIDE-I), suggesting that spectrum-guided temporal weighting particularly affects sensitivity to positive cases. Removing all three components together produced the largest overall degradation, suggesting that the components provide partially complementary contributions.
Table 10 reports the paired t-test results on ABIDE-I. Figure 9 visualizes the same trend across configurations.

4. Discussion

4.1. Neurobiological Associations and Interpretability

We used Gradient-weighted Class Activation Mapping (Grad-CAM) to derive ROI-level importance scores from models trained on the ABIDE-I dataset. As shown in Figure 10, the default mode network accounts for the largest share of total ROI importance (25.3%), followed by the frontoparietal control network (17.0%) and the somatomotor network (16.5%). This ranking is broadly consistent with functional connectivity abnormalities reported in prior ASD neuroimaging studies. The default mode network is implicated in social cognition and self-referential processing, with weakened resting-state connectivity reported in ASD [32] and dysregulated switching with task-positive regions in affected children [33]. The frontoparietal control network, linked to executive function and cognitive flexibility, has shown reduced connectivity associated with repetitive behaviors in ASD [34].
While the network-level analysis identifies overall importance, it does not reveal where the ASD and control groups diverge most. Figure 11 projects the 10 ROIs with the largest absolute group difference (ASD minus TC importance) onto brain space. Six of these ten ROIs belong to the limbic network, concentrated in the temporal pole and orbitofrontal cortex. Altered salience-network connectivity involving the temporal pole has been linked to social motivation deficits in ASD [35], and atypical orbitofrontal–amygdala dynamic connectivity predicts repetitive behavior severity in affected children [36]. The remaining ROIs fall in the default mode network and visual cortex, consistent with the network-level analysis. These two views are complementary: the default mode network carries high overall importance, whereas limbic regions show the largest group differences. This pattern is consistent with the possibility that default mode features contribute broadly across groups, while limbic features are more group-discriminative in the learned importance maps.
To assess whether the model exploits site-specific artifacts, we computed pairwise Jensen–Shannon divergence (JSD) between sites for both temporal-position and spectral distributions. As shown in Figure 12, most site pairs show low divergence in both domains, indicating that the temporal positions emphasized by SATA and the spectral representations produced by the TR-adaptive branch are broadly shared across sites rather than driven by acquisition differences. The underlying per-site distributions are provided in Appendix A (Figure A1 and Figure A2).
Spectral analysis reveals that the ASD group exhibits higher energy in the slow-4 band (0.027–0.073 Hz) and lower energy in the slow-2 band (0.198–0.25 Hz) compared with controls, consistent with prior reports of altered low-frequency amplitude in ASD [32,38]. The slow-4 band spans periods of roughly 14–37 s, overlapping with typical default mode oscillation time scales, and the elevated energy may reflect altered default mode dynamics during rest.
As a sanity check, we extracted ROI activations from the top 10% of SATA-weighted time steps and trained a logistic regression classifier, comparing against randomly selected time steps. SATA-selected features yield an AUC of 58.31 ± 5.27 versus 50.56 ± 7.27 for the random baseline (Figure 13). The absolute performance is modest because logistic regression operates on single-step activations without temporal context; the relevant finding is the relative gap, which confirms that SATA-selected positions carry more discriminative information than arbitrary time steps.
These analyses suggest partial alignment between the model’s learned representations and disorder-relevant neural systems. Overall importance concentrates on the default mode and frontoparietal networks. Group-discriminative importance localizes to limbic regions. Spectral signatures are consistent with known low-frequency alterations in ASD. Cross-site patterns are broadly shared. These findings indicate neurobiological relevance, though they do not constitute direct evidence of specific neural mechanisms.

4.2. Limitations and Future Directions

Several limitations should be acknowledged. The current evaluation covers two public datasets and two parcellation schemes. Although the results demonstrate robustness to TR-related site effects, other sources of cross-site heterogeneity were not systematically examined. These include scanner and vendor differences, acquisition parameters beyond TR (e.g., spatial resolution, echo time), population composition (e.g., age, sex, medication status), and preprocessing variation. This is not unique to our study; prior multi-site rs-fMRI work has shown that such confounds can rival disease effect sizes and remain an open challenge for the field [5].
Second, the present study does not provide causal evidence for the neurobiological relevance of the learned representations. On the data side, the study uses rs-fMRI only, lacks longitudinal follow-up, and relies on coarse diagnostic labels (e.g., ADHD subtypes collapsed into a single category). On the method side, Grad-CAM attributions are gradient-based approximations that do not directly measure neural activity. More broadly, saliency-based explanations do not by themselves establish mechanistic validity, and the spatial overlap with known disorder-related regions, while encouraging, should be interpreted with caution.
Future work should address these gaps along several lines. First, evaluating the framework under explicit harmonization benchmarks and across a wider range of acquisition protocols would strengthen generalizability claims. Second, integrating complementary modalities such as structural MRI, diffusion MRI, and genetic covariates may capture aspects of disorder neurobiology that rs-fMRI alone cannot. Third, adopting causal inference frameworks would allow more rigorous assessment of whether learned features reflect disorder-related mechanisms rather than statistical associations. Finally, extending the approach to longitudinal cohorts and additional neuropsychiatric conditions would help clarify its clinical applicability beyond the cross-sectional binary classification settings studied here.

5. Conclusions

This study presents Spec-RWKV, a spectrum-guided linear recurrent framework designed for two challenges in multi-site rs-fMRI-assisted diagnosis: cross-site TR heterogeneity and BOLD signal non-stationarity.
The framework introduces three coordinated mechanisms. PrismTimeMix defines multi-scale temporal decay rates as physical half-lives and converts them per step using each sample’s TR. A TR-adaptive continuous wavelet transform aligns spectral features across sites by adjusting frequency coverage to the local sampling rate. Spectrum-guided adaptive temporal aggregation then uses these spectral features to reweight temporal evidence before classification.
Experiments on ABIDE-I and ADHD-200 show competitive diagnostic performance and improved cross-site generalization relative to the evaluated baselines. Interpretability analyses suggest that the learned representations emphasize the default mode and frontoparietal networks, while spectral features concentrate in the slow-4 band in patterns broadly consistent with prior neuroimaging findings. These results support spectrum-guided recurrent modeling as a promising direction for more comparable cross-site analysis with interpretable intermediate patterns.

Author Contributions

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

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki. Ethical review and approval were waived for this study due to the use of publicly available, fully anonymized retrospective neuroimaging data (ABIDE-I and ADHD-200). All original data acquisitions were approved by the institutional review boards of the respective contributing institutions.

Informed Consent Statement

Patient consent was waived due to the use of publicly available, anonymized retrospective data from the ABIDE-I and ADHD-200 repositories. Written informed consent had been obtained from all subjects involved in the original studies.

Data Availability Statement

The data presented in this study are openly available in ABIDE Preprocessed Connectomes Project at http://preprocessed-connectomes-project.org/abide/ (accessed on 21 April 2026) and ADHD-200 Preprocessed Connectomes Project at http://preprocessed-connectomes-project.org/adhd200/ (accessed on 21 April 2026). The code for Spec-RWKV is available at https://github.com/arisaris28/spec-rwkv (accessed on 26 March 2026).

Acknowledgments

During manuscript preparation, author used generative AI tools for language-related assistance, including grammar, punctuation, LaTeX syntax, and formatting adjustments, as well as literature retrieval. Specifically, Claude Opus 4.6 was used for translation and English-language polishing of the manuscript, including improving sentence fluency, grammar, punctuation, academic expression, and assistance with LaTeX syntax and formatting. In addition, ChatGPT-5.4 was used to assist with the retrieval of relevant literature and background information. These tools were used solely to support language refinement, formatting, and literature search; they were not used to generate scientific conclusions, interpret results, fabricate data, or replace the authors’ own intellectual contributions. All scientific content, data analysis, interpretation, verification of references, and final decisions regarding the manuscript were performed and approved by the authors, who take full responsibility for the submitted work.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Additional Experimental Results

Appendix A.1. Per-Site Leave-One-Site-Out Performance

Table A1 reports the per-site LOSO results of Spec-RWKV on ABIDE-I under the Schaefer 400-ROI atlas. Each row corresponds to one held-out site. Balanced accuracy (BA) and AUC are averaged over five random seeds; n is the number of test subjects when that site is held out.
Table A1. Per-site LOSO performance of Spec-RWKV on ABIDE-I (Schaefer 400-ROI atlas). BA, balanced accuracy. Values are mean ± std over 5 seeds.
Table A1. Per-site LOSO performance of Spec-RWKV on ABIDE-I (Schaefer 400-ROI atlas). BA, balanced accuracy. Values are mean ± std over 5 seeds.
SitenBAAUCSensitivitySpecificityMacro-F1
CALTECH70.920 ± 0.1100.900 ± 0.1410.840 ± 0.2191.000 ± 0.0000.883 ± 0.160
CMU70.838 ± 0.1060.778 ± 0.1570.867 ± 0.1830.808 ± 0.2480.836 ± 0.117
KKI320.757 ± 0.0270.820 ± 0.0310.780 ± 0.1300.733 ± 0.1090.749 ± 0.042
LEUVEN_1110.564 ± 0.0510.314 ± 0.0890.700 ± 0.4110.429 ± 0.4040.458 ± 0.120
LEUVEN_2170.790 ± 0.0370.825 ± 0.0230.756 ± 0.1450.825 ± 0.1900.783 ± 0.036
MAX_MUN440.596 ± 0.0820.536 ± 0.0970.533 ± 0.2680.659 ± 0.2100.560 ± 0.114
NYU1650.647 ± 0.0840.683 ± 0.0990.766 ± 0.1770.528 ± 0.3160.615 ± 0.143
OHSU250.670 ± 0.0690.628 ± 0.0850.523 ± 0.2800.817 ± 0.2310.637 ± 0.102
OLIN280.736 ± 0.0860.726 ± 0.0970.929 ± 0.1010.543 ± 0.1200.724 ± 0.091
PITT490.739 ± 0.0260.753 ± 0.0220.744 ± 0.0670.733 ± 0.0480.738 ± 0.027
SBL200.724 ± 0.0560.673 ± 0.0980.582 ± 0.1040.867 ± 0.1220.706 ± 0.056
SDSU140.775 ± 0.0560.755 ± 0.0570.600 ± 0.1580.950 ± 0.1120.690 ± 0.084
STANFORD250.735 ± 0.0340.721 ± 0.0320.569 ± 0.1400.900 ± 0.1490.718 ± 0.040
TRINITY380.651 ± 0.0990.632 ± 0.1070.667 ± 0.2180.635 ± 0.3780.610 ± 0.151
UCLA_1620.742 ± 0.0500.752 ± 0.0290.840 ± 0.0630.643 ± 0.1070.721 ± 0.058
UCLA_2210.816 ± 0.0390.762 ± 0.0460.760 ± 0.0550.873 ± 0.0810.817 ± 0.040
UM_1850.713 ± 0.0560.744 ± 0.0640.681 ± 0.1990.746 ± 0.1700.694 ± 0.071
UM_2340.718 ± 0.0650.705 ± 0.0490.743 ± 0.1640.692 ± 0.2550.701 ± 0.054
USM650.776 ± 0.0300.813 ± 0.0230.733 ± 0.1090.820 ± 0.0860.773 ± 0.029
YALE370.827 ± 0.0240.856 ± 0.0300.833 ± 0.0390.821 ± 0.0470.827 ± 0.024
Table A2. Per-site LOSO performance of Spec-RWKV on ADHD-200 for selected sites (excluding Pittsburgh and WashU, which contain only control subjects). BA, balanced accuracy. Values are mean ± std over 5 seeds.
Table A2. Per-site LOSO performance of Spec-RWKV on ADHD-200 for selected sites (excluding Pittsburgh and WashU, which contain only control subjects). BA, balanced accuracy. Values are mean ± std over 5 seeds.
SitenBAAUCSensitivitySpecificityMacro-F1
NYU1790.550 ± 0.0290.617 ± 0.0430.476 ± 0.0340.624 ± 0.0490.532 ± 0.020
Peking_1780.691 ± 0.0650.696 ± 0.0620.634 ± 0.0580.748 ± 0.0790.678 ± 0.071
Peking_2560.666 ± 0.0700.682 ± 0.0590.606 ± 0.0980.725 ± 0.0700.653 ± 0.080
Peking_3400.646 ± 0.0790.671 ± 0.0740.586 ± 0.1060.706 ± 0.1190.631 ± 0.076
OHSU570.658 ± 0.0530.683 ± 0.0550.605 ± 0.0920.710 ± 0.0960.652 ± 0.060
KKI720.781 ± 0.0460.754 ± 0.0740.746 ± 0.0600.817 ± 0.0660.781 ± 0.051
NeuroIMAGE390.747 ± 0.0650.735 ± 0.0910.706 ± 0.1200.789 ± 0.0940.743 ± 0.080

Appendix A.2. Per-Site Cross-Site Consistency

To complement the pairwise JSD matrices in the main text (Figure 12), Figure A1 and Figure A2 show the per-site distributions from which those divergence values were computed.
Figure A1. Per-site distribution of high-weight temporal positions under SATA on ABIDE-I. Each panel shows one held-out site. Most sites share a similar concentration pattern; larger deviations are confined to smaller sites.
Figure A1. Per-site distribution of high-weight temporal positions under SATA on ABIDE-I. Each panel shows one held-out site. Most sites share a similar concentration pattern; larger deviations are confined to smaller sites.
Brainsci 16 00455 g0a1
Figure A2. Per-site spectral energy distributions learned by the TR-adaptive spectral branch on ABIDE-I. The dominant energy is concentrated in similar scale ranges across most sites, consistent with the low pairwise JSD values in the main text.
Figure A2. Per-site spectral energy distributions learned by the TR-adaptive spectral branch on ABIDE-I. The dominant energy is concentrated in similar scale ranges across most sites, consistent with the low pairwise JSD values in the main text.
Brainsci 16 00455 g0a2

References

  1. Fox, M.D.; Raichle, M.E. Spontaneous Fluctuations in Brain Activity Observed with Functional Magnetic Resonance Imaging. Nat. Rev. Neurosci. 2007, 8, 700–711. [Google Scholar] [CrossRef]
  2. Arbabshirani, M.R.; Plis, S.; Sui, J.; Calhoun, V.D. Single Subject Prediction of Brain Disorders in Neuroimaging: Promises and Pitfalls. NeuroImage 2017, 145, 137–165. [Google Scholar] [CrossRef] [PubMed]
  3. Di Martino, A.; Yan, C.G.; Li, Q.; Denio, E.; Castellanos, F.X.; Alaerts, K.; Anderson, J.S.; Assaf, M.; Bookheimer, S.Y.; Dapretto, M.; et al. The Autism Brain Imaging Data Exchange: Towards a Large-Scale Evaluation of the Intrinsic Brain Architecture in Autism. Mol. Psychiatry 2014, 19, 659–667. [Google Scholar] [CrossRef] [PubMed]
  4. Milham, M.P.; Fair, D.; Mennes, M.; Mostofsky, S.H. The ADHD-200 Consortium: A Model to Advance the Translational Potential of Neuroimaging in Clinical Neuroscience. Front. Syst. Neurosci. 2012, 6, 62. [Google Scholar] [CrossRef] [PubMed]
  5. Yu, M.; Linn, K.A.; Cook, P.A.; Phillips, M.L.; McInnis, M.; Fava, M.; Trivedi, M.H.; Weissman, M.M.; Shinohara, R.T.; Sheline, Y.I. Statistical Harmonization Corrects Site Effects in Functional Connectivity Measurements from Multi-Site fMRI Data. Hum. Brain Mapp. 2018, 39, 4213–4227. [Google Scholar] [CrossRef]
  6. Geirhos, R.; Jacobsen, J.H.; Michaelis, C.; Zemel, R.; Brendel, W.; Bethge, M.; Wichmann, F.A. Shortcut Learning in Deep Neural Networks. Nat. Mach. Intell. 2020, 2, 665–673. [Google Scholar] [CrossRef]
  7. Almuqhim, F.; Saeed, F. Overcoming Site Variability in Multisite fMRI Studies: An Autoencoder Framework for Enhanced Generalizability of Machine Learning Models. Neuroinformatics 2025, 23, 46. [Google Scholar] [CrossRef]
  8. Cordes, D.; Nandy, R.R.; Schafer, S.; Wager, T.D. Characterization and Reduction of Cardiac- and Respiratory-Induced Noise as a Function of the Sampling Rate (TR) in fMRI. NeuroImage 2014, 89, 314–330. [Google Scholar] [CrossRef]
  9. Huotari, N.; Raitamaa, L.; Helakari, H.; Kananen, J.; Raatikainen, V.; Rasila, A.; Tuovinen, T.; Kantola, J.; Borchardt, V.; Kiviniemi, V.J.; et al. Sampling Rate Effects on Resting State fMRI Metrics. Front. Neurosci. 2019, 13, 279. [Google Scholar] [CrossRef]
  10. Lurie, D.J.; Kessler, D.; Bassett, D.S.; Betzel, R.F.; Breakspear, M.; Kheilholz, S.; Kucyi, A.; Liège, S.; Lindquist, M.A.; McIntosh, A.R.; et al. Questions and controversies in the study of time-varying functional connectivity in resting fMRI. Netw. Neurosci. 2020, 4, 30–69. [Google Scholar] [CrossRef]
  11. Bedel, H.A.; Sivgin, I.; Dalmaz, O.; Dar, S.U.H.; Çukur, T. BolT: Fused Window Transformers for fMRI Time Series Analysis. Med. Image Anal. 2023, 88, 102841. [Google Scholar] [CrossRef] [PubMed]
  12. Han, K.; Yang, Y.; Huang, Z.; Kan, X.; Guo, Y.; Yang, Y.; He, L.; Zhan, L.; Sun, Y.; Wang, W.; et al. BrainODE: Dynamic Brain Signal Analysis via Graph-Aided Neural Ordinary Differential Equations. In Proceedings of the 2024 IEEE EMBS International Conference on Biomedical and Health Informatics (BHI), Houston, TX, USA, 10–13 November 2024. [Google Scholar] [CrossRef]
  13. Pal, S.; Luong, V.; Lee, H.; Dan, T.; Wu, G.; Davidson, R.; Kim, W.H.; Singh, V. MnemoDyn: Learning Resting State Dynamics from 40K FMRI Sequences. In Proceedings of the Fourteenth International Conference on Learning Representations, Singapore, 24–28 April 2025. [Google Scholar]
  14. Liu, Y.; Zhao, Q.; Zhao, L.; Liu, Y.; Li, X. Modeling Temporal Dependencies in Brain Functional Connectivity to Identify Autism Spectrum Disorders Based on Heterogeneous Rs-fMRI Data. Exp. Neurobiol. 2025, 34, 77–86. [Google Scholar] [CrossRef] [PubMed]
  15. Xu, J.; He, K.; Tang, Y.; Li, W.; Lan, M.; Dong, X.; Ke, Y.; Feng, M. BrainPrompt: Multi-Level Brain Prompt Enhancement for Neurological Condition Identification. In Proceedings of the Medical Image Computing and Computer Assisted Intervention—MICCAI 2025; Gee, J.C., Alexander, D.C., Hong, J., Iglesias, J.E., Sudre, C.H., Venkataraman, A., Golland, P., Kim, J.H., Park, J., Eds.; Springer: Cham, Switzerland, 2026; pp. 172–182. [Google Scholar] [CrossRef]
  16. Peng, B.; Alcaide, E.; Anthony, Q.; Albalak, A.; Arcadinho, S.; Biderman, S.; Cao, H.; Cheng, X.; Chung, M.; Derczynski, L.; et al. RWKV: Reinventing RNNs for the Transformer Era. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore, 6–10 December 2023. [Google Scholar] [CrossRef]
  17. Raimondo, L.; Oliveira, ĺ.A.F.; Heij, J.; Priovoulos, N.; Kundu, P.; Leoni, R.F.; van der Zwaag, W. Advances in Resting State fMRI Acquisitions for Functional Connectomics. NeuroImage 2021, 243, 118503. [Google Scholar] [CrossRef] [PubMed]
  18. Schaefer, A.; Kong, R.; Gordon, E.M.; Laumann, T.O.; Zuo, X.N.; Holmes, A.J.; Eickhoff, S.B.; Yeo, B.T. Local-Global Parcellation of the Human Cerebral Cortex from Intrinsic Functional Connectivity MRI. Cereb. Cortex 2018, 28, 3095–3114. [Google Scholar] [CrossRef]
  19. Tzourio-Mazoyer, N.; Landeau, B.; Papathanassiou, D.; Crivello, F.; Etard, O.; Delcroix, N.; Mazoyer, B.; Joliot, M. Automated Anatomical Labeling of Activations in SPM Using a Macroscopic Anatomical Parcellation of the MNI MRI Single-Subject Brain. NeuroImage 2002, 15, 273–289. [Google Scholar] [CrossRef]
  20. Yeo, B.T.; Krienen, F.M.; Sepulcre, J.; Sabuncu, M.R.; Lashkari, D.; Hollinshead, M.; Roffman, J.L.; Smoller, J.W.; Zöllei, L.; Polimeni, J.R.; et al. The Organization of the Human Cerebral Cortex Estimated by Intrinsic Functional Connectivity. J. Neurophysiol. 2011, 106, 1125–1165. [Google Scholar] [CrossRef]
  21. Chang, C.; Glover, G.H. Time–Frequency Dynamics of Resting-State Brain Connectivity Measured with fMRI. NeuroImage 2010, 50, 81–98. [Google Scholar] [CrossRef]
  22. Torrence, C.; Compo, G.P. A Practical Guide to Wavelet Analysis. Bull. Am. Meteorol. Soc. 1998, 79, 61–78. [Google Scholar] [CrossRef]
  23. Ridnik, T.; Ben-Baruch, E.; Zamir, N.; Noy, A.; Friedman, I.; Protter, M.; Zelnik-Manor, L. Asymmetric Loss For Multi-Label Classification. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021. [Google Scholar] [CrossRef]
  24. Smith, L.N.; Topin, N. Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Rates. In Proceedings of the Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications; SPIE: Cergy-Pontoise, France, 2019; Volume 11006, pp. 369–386. [Google Scholar] [CrossRef]
  25. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  26. Kawahara, J.; Brown, C.J.; Miller, S.P.; Booth, B.G.; Chau, V.; Grunau, R.E.; Zwicker, J.G.; Hamarneh, G. BrainNetCNN: Convolutional Neural Networks for Brain Networks; towards predicting neurodevelopment. NeuroImage 2017, 146, 1038–1049. [Google Scholar] [CrossRef]
  27. Wang, Y.; Long, H.; Zhou, Q.; Bo, T.; Zheng, J. PLSNet: Position-Aware GCN-Based Autism Spectrum Disorder Diagnosis via FC Learning and ROIs Sifting. Comput. Biol. Med. 2023, 163, 107184. [Google Scholar] [CrossRef]
  28. Liu, M.; Zhang, H.; Shi, F.; Shen, D. Hierarchical Graph Convolutional Network Built by Multiscale Atlases for Brain Disorder Diagnosis Using Functional Connectivity. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 15182–15194. [Google Scholar] [CrossRef]
  29. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021. [Google Scholar] [CrossRef]
  30. Dong, W.; Li, Y.; Zeng, W.; Chen, L.; Yan, H.; Siok, W.T.; Wang, N. STARFormer: A Novel Spatio-Temporal Aggregation Reorganization Transformer of FMRI for Brain Disorder Diagnosis. Neural Netw. 2025, 192, 107927. [Google Scholar] [CrossRef] [PubMed]
  31. Bannadabhavi, A.; Lee, S.; Deng, W.; Ying, R.; Li, X. Community-Aware Transformer for Autism Prediction in fMRI Connectome. In Proceedings of the Medical Image Computing and Computer Assisted Intervention—MICCAI 2023: 26th International Conference, Vancouver, BC, Canada, 8–12 October 2023; Proceedings, Part VIII; Springer: Berlin/Heidelberg, Germany, 2023; pp. 287–297. [Google Scholar] [CrossRef]
  32. Kennedy, D.P.; Redcay, E.; Courchesne, E. Failing to Deactivate: Resting Functional Abnormalities in Autism. Proc. Natl. Acad. Sci. USA 2006, 103, 8275–8280. [Google Scholar] [CrossRef] [PubMed]
  33. Monk, C.S.; Peltier, S.J.; Wiggins, J.L.; Weng, S.J.; Carrasco, M.; Risi, S.; Lord, C. Abnormalities of Intrinsic Functional Connectivity in Autism Spectrum Disorders. NeuroImage 2009, 47, 764–772. [Google Scholar] [CrossRef] [PubMed]
  34. Abbott, A.E.; Linke, A.C.; Nair, A.; Jahedi, A.; Alba, L.A.; Keown, C.L.; Fishman, I.; Müller, R.A. Repetitive Behaviors in Autism Are Linked to Imbalance of Corticostriatal Connectivity: A Functional Connectivity MRI Study. Soc. Cogn. Affect. Neurosci. 2018, 13, 32–42. [Google Scholar] [CrossRef]
  35. Attanasio, M.; Mazza, M.; Le Donne, I.; Nigri, A.; Valenti, M. Salience Network in Autism: Preliminary Results on Functional Connectivity Analysis in Resting State. Eur. Arch. Psychiatry Clin. Neurosci. 2025, 275, 2479–2492. [Google Scholar] [CrossRef]
  36. Zheng, X.; Wang, X.; Song, R.; Tian, J.; Yang, L. Executive Function, Limbic Circuit Dynamics and Repetitive and Restricted Behaviors in Children with Autism Spectrum Disorder. Front. Neurosci. 2025, 18, 1508077. [Google Scholar] [CrossRef]
  37. Xia, M.; Wang, J.; He, Y. BrainNet Viewer: A Network Visualization Tool for Human Brain Connectomics. PLoS ONE 2013, 8, e68910. [Google Scholar] [CrossRef]
  38. Zuo, X.N.; Di Martino, A.; Kelly, C.; Shehzad, Z.E.; Gee, D.G.; Klein, D.F.; Castellanos, F.X.; Biswal, B.B.; Milham, M.P. The Oscillating Brain: Complex and Reliable. NeuroImage 2010, 49, 1432–1445. [Google Scholar] [CrossRef]
Figure 1. Cross-site TR heterogeneity in the two benchmark datasets. (a) ABIDE-I: TR ranges from 1.5 to 3.0 across 20 sites. (b) ADHD-200: TR ranges from 1.5 to 2.5 s across 9 sites, with less variation than ABIDE-I.
Figure 1. Cross-site TR heterogeneity in the two benchmark datasets. (a) ABIDE-I: TR ranges from 1.5 to 3.0 across 20 sites. (b) ADHD-200: TR ranges from 1.5 to 2.5 s across 9 sites, with less variation than ABIDE-I.
Brainsci 16 00455 g001
Figure 2. Overview of the Spec-RWKV framework. The lower spectral pathway computes a TR-adaptive spectral context vector s in physical frequency units, which conditions the upper temporal backbone at two points: by modulating multi-scale decay rates in PrismTimeMix and by constructing the aggregation query in SATA. The temporal pathway processes ROI time series with stacked PrismRWKV blocks whose decay rates are defined in physical time (seconds). The two pathways are merged by a Gated Fusion Unit (GFU) for binary classification.
Figure 2. Overview of the Spec-RWKV framework. The lower spectral pathway computes a TR-adaptive spectral context vector s in physical frequency units, which conditions the upper temporal backbone at two points: by modulating multi-scale decay rates in PrismTimeMix and by constructing the aggregation query in SATA. The temporal pathway processes ROI time series with stacked PrismRWKV blocks whose decay rates are defined in physical time (seconds). The two pathways are merged by a Gated Fusion Unit (GFU) for binary classification.
Brainsci 16 00455 g002
Figure 3. Internal structure of a single PrismRWKV block. Each block consists of a multi-scale TimeMix module (PrismTimeMix) and a ChannelMix module, connected through pre-LayerNorm residual paths. PrismTimeMix replaces the standard single-decay recurrent attention with K parallel scale heads, each operating at a different physical time constant. The spectral context vector s enters at the TimeMix stage to modulate decay rates.
Figure 3. Internal structure of a single PrismRWKV block. Each block consists of a multi-scale TimeMix module (PrismTimeMix) and a ChannelMix module, connected through pre-LayerNorm residual paths. PrismTimeMix replaces the standard single-decay recurrent attention with K parallel scale heads, each operating at a different physical time constant. The spectral context vector s enters at the TimeMix stage to modulate decay rates.
Brainsci 16 00455 g003
Figure 4. Multi-scale decay mechanism in PrismTimeMix. Each of K parallel heads operates at a physical half-life τ k tied to a BOLD frequency band (e.g., slow-5 through slow-2). Decay rates are converted from per-second to per-step values using the sample’s TR, preserving consistent physical memory spans across sites. The spectral context vector s further modulates these per-sample rates. Blue arrows indicate the main signal flow; orange arrows denote spectral context modulation from s .
Figure 4. Multi-scale decay mechanism in PrismTimeMix. Each of K parallel heads operates at a physical half-life τ k tied to a BOLD frequency band (e.g., slow-5 through slow-2). Decay rates are converted from per-second to per-step values using the sample’s TR, preserving consistent physical memory spans across sites. The spectral context vector s further modulates these per-sample rates. Blue arrows indicate the main signal flow; orange arrows denote spectral context modulation from s .
Brainsci 16 00455 g004
Figure 5. Architecture of the TR-adaptive spectral branch. The input ROI time series is transformed by a CWT whose frequency range and scale count are adjusted to the sample’s TR (see Figure 6 for the alignment effect). Arrows indicate the direction of change: a longer TR (TR↑) reduces both the maximum frequency f max and the number of scales n scales (↓), and vice versa. A frequency encoder then compresses the time–frequency map into a spectral context vector s , which conditions both PrismTimeMix decay rates and the SATA aggregation query.
Figure 5. Architecture of the TR-adaptive spectral branch. The input ROI time series is transformed by a CWT whose frequency range and scale count are adjusted to the sample’s TR (see Figure 6 for the alignment effect). Arrows indicate the direction of change: a longer TR (TR↑) reduces both the maximum frequency f max and the number of scales n scales (↓), and vice versa. A frequency encoder then compresses the time–frequency map into a spectral context vector s , which conditions both PrismTimeMix decay rates and the SATA aggregation query.
Brainsci 16 00455 g005
Figure 6. Effect of TR-adaptive scale selection on cross-site spectral alignment. (a) Fixed-scale CWT: when the same scale indices are applied to samples with different TRs, each index maps to a different physical frequency, creating systematic spectral mismatch across sites. (b) TR-adaptive CWT: scale parameters are adjusted per sample so that each scale index corresponds to approximately the same physical frequency regardless of TR. This alignment is essential for the spectral context vector to carry comparable information across sites.
Figure 6. Effect of TR-adaptive scale selection on cross-site spectral alignment. (a) Fixed-scale CWT: when the same scale indices are applied to samples with different TRs, each index maps to a different physical frequency, creating systematic spectral mismatch across sites. (b) TR-adaptive CWT: scale parameters are adjusted per sample so that each scale index corresponds to approximately the same physical frequency regardless of TR. This alignment is essential for the spectral context vector to carry comparable information across sites.
Brainsci 16 00455 g006
Figure 7. (a) Spectrum-guided Adaptive Temporal Aggregation (SATA). The spectral context vector s is projected into a query, while each temporal hidden state h t is projected into a key. The query–key similarity determines how much each time step contributes to the aggregated representation; time steps whose content is most consistent with the dominant spectral cues receive higher weight. (b) Gated Fusion Unit (GFU). The temporal representation and spectral context are combined through learned element-wise gates, allowing the model to adaptively balance temporal and spectral contributions per feature dimension.
Figure 7. (a) Spectrum-guided Adaptive Temporal Aggregation (SATA). The spectral context vector s is projected into a query, while each temporal hidden state h t is projected into a key. The query–key similarity determines how much each time step contributes to the aggregated representation; time steps whose content is most consistent with the dominant spectral cues receive higher weight. (b) Gated Fusion Unit (GFU). The temporal representation and spectral context are combined through learned element-wise gates, allowing the model to adaptively balance temporal and spectral contributions per feature dimension.
Brainsci 16 00455 g007
Figure 8. Per-site LOSO performance of Spec-RWKV on ABIDE-I. Each pair of bars shows the accuracy (blue) and AUC (coral) when that site is held out as the test set. Error bars denote standard deviation across five random seeds. Sites are sorted by descending accuracy; parenthesized numbers indicate site sample size.
Figure 8. Per-site LOSO performance of Spec-RWKV on ABIDE-I. Each pair of bars shows the accuracy (blue) and AUC (coral) when that site is held out as the test set. Error bars denote standard deviation across five random seeds. Sites are sorted by descending accuracy; parenthesized numbers indicate site sample size.
Brainsci 16 00455 g008
Figure 9. Ablation results on ABIDE-I (Schaefer atlas); error bars denote standard deviation over 50 runs. Removing spectral guidance (No-Spec-Guide) causes the largest single-component drop (−3.08 AUC), and removing all three core components together yields the largest overall degradation. * p < 0.05 , ** p < 0.01 (paired-sample t-test versus the full model).
Figure 9. Ablation results on ABIDE-I (Schaefer atlas); error bars denote standard deviation over 50 runs. Removing spectral guidance (No-Spec-Guide) causes the largest single-component drop (−3.08 AUC), and removing all three core components together yields the largest overall degradation. * p < 0.05 , ** p < 0.01 (paired-sample t-test versus the full model).
Brainsci 16 00455 g009
Figure 10. Network-level distribution of model-derived ROI importance on ABIDE-I. (a) Proportion of total importance attributed to each Yeo 7-network. (b) The 20 highest-ranked individual ROIs and their network affiliations.
Figure 10. Network-level distribution of model-derived ROI importance on ABIDE-I. (a) Proportion of total importance attributed to each Yeo 7-network. (b) The 20 highest-ranked individual ROIs and their network affiliations.
Brainsci 16 00455 g010
Figure 11. Top 10 ROIs with the largest absolute ASD–TC difference in model-derived importance on ABIDE-I, visualized with BrainNet Viewer [37]. Node size indicates the rank of the absolute difference. Overall, 6 of the 10 ROIs belong to the limbic network, with the temporal pole and orbitofrontal cortex most prominent.
Figure 11. Top 10 ROIs with the largest absolute ASD–TC difference in model-derived importance on ABIDE-I, visualized with BrainNet Viewer [37]. Node size indicates the rank of the absolute difference. Overall, 6 of the 10 ROIs belong to the limbic network, with the temporal pole and orbitofrontal cortex most prominent.
Brainsci 16 00455 g011
Figure 12. Pairwise Jensen–Shannon divergence of site-level distributions in ABIDE-I. (a) High-weight temporal positions. (b) Spectral energy distributions. Most site pairs show low divergence.
Figure 12. Pairwise Jensen–Shannon divergence of site-level distributions in ABIDE-I. (a) High-weight temporal positions. (b) Spectral energy distributions. Most site pairs show low divergence.
Brainsci 16 00455 g012
Figure 13. AUC of logistic regression trained on the top 10% SATA-weighted time steps versus randomly selected time steps on ABIDE-I; shade intensity carries no additional meaning.
Figure 13. AUC of logistic regression trained on the top 10% SATA-weighted time steps versus randomly selected time steps on ABIDE-I; shade intensity carries no additional meaning.
Brainsci 16 00455 g013
Table 1. Site-level sample sizes, diagnostic group counts, and repetition times (TR) for the ABIDE-I dataset after quality control (871 subjects across 20 sites).
Table 1. Site-level sample sizes, diagnostic group counts, and repetition times (TR) for the ABIDE-I dataset after quality control (871 subjects across 20 sites).
SiteSubjectsASDControlsTR (s)
NYU17274982.0
UM_18634522.0
USM6743242.0
UCLA_16437273.0
PITT5024261.5
MAX_MUN4619273.0
TRINITY4419252.0
YALE4122192.0
UM_23413212.0
KKI3312212.5
OLIN2814141.5
LEUVEN_1281414∼1.667
LEUVEN_2281216∼1.651
SDSU278192.0
SBL2612142.2
STANFORD2512132.0
OHSU2512132.5
UCLA_22111103.0
CALTECH155102.0
CMU11651.5/2.0
Total871403468
Table 2. Site-level sample sizes, diagnostic group counts, and TR values for the ADHD-200 dataset after quality control (635 subjects across 9 sites). Pittsburgh and WashU contain only control subjects.
Table 2. Site-level sample sizes, diagnostic group counts, and TR values for the ADHD-200 dataset after quality control (635 subjects across 9 sites). Pittsburgh and WashU contain only control subjects.
SiteSubjectsADHDControlsTR (s)
NYU17991882.0
Peking_17820582.0
Peking_25633232.0
Peking_34018222.0
KKI7218542.5
Pittsburgh630631.5
OHSU5722352.5
NeuroIMAGE3917221.96
WashU510512.5
Total635219416
Table 3. Mixed-site 10-fold cross-validation results on the Schaefer 400-ROI atlas. Baselines are grouped by modeling strategy: traditional ML, recurrent, graph-based, Transformer-based, and prompt-based. Spec-RWKV achieves the best AUC on both datasets.
Table 3. Mixed-site 10-fold cross-validation results on the Schaefer 400-ROI atlas. Baselines are grouped by modeling strategy: traditional ML, recurrent, graph-based, Transformer-based, and prompt-based. Spec-RWKV achieves the best AUC on both datasets.
MethodABIDE-I (871 Subjects, 20 Sites)ADHD-200 (635 Subjects, 9 Sites)
ACC (%)Prec. (%)Rec. (%)AUC (%)ACC (%)Prec. (%)Rec. (%)AUC (%)
SVM65.43 ± 4.5365.16 ± 4.5063.43 ± 4.5771.13 ± 6.2665.45 ± 8.1965.55 ± 5.6879.61 ± 7.1857.61 ± 6.94
LSTM54.14 ± 5.6356.66 ± 5.0458.91 ± 7.5255.46 ± 7.2758.58 ± 4.6766.39 ± 3.2674.68 ± 5.6252.36 ± 7.10
CNN-LSTM52.11 ± 5.2554.56 ± 4.5662.10 ± 7.6552.26 ± 7.2653.32 ± 6.0765.00 ± 4.6662.14 ± 8.7550.09 ± 7.65
AttnLSTM71.86 ± 3.0972.64 ± 4.4674.38 ± 6.3874.15 ± 3.4271.34 ± 3.2274.63 ± 3.4678.13 ± 5.1971.81 ± 3.57
BrainNetCNN62.75 ± 6.4568.22 ± 8.6554.54 ± 22.4871.20 ± 6.1562.42 ± 5.1169.07 ± 3.7378.15 ± 8.7860.08 ± 6.12
PLSNet72.55 ± 2.7371.50 ± 4.8068.14 ± 8.1975.11 ± 3.5670.58 ± 3.1171.86 ± 2.6272.92 ± 4.8175.40 ± 2.73
MAHGCN73.12 ± 3.6371.05 ± 5.3872.02 ± 4.1472.07 ± 3.0370.76 ± 4.6369.95 ± 3.3871.08 ± 2.1474.25 ± 3.41
SwinT69.83 ± 4.6260.68 ± 7.5568.34 ± 6.4974.21 ± 4.1868.49 ± 4.6965.32 ± 4.4166.37 ± 9.6373.92 ± 4.63
BolT71.28 ± 4.6269.85 ± 4.9471.32 ± 4.3575.14 ± 3.4469.63 ± 4.6368.60 ± 5.1976.56 ± 5.7972.56 ± 5.02
STARFormer71.81 ± 4.0672.48 ± 4.9183.25 ± 6.5574.34 ± 5.9071.51 ± 5.6972.90 ± 5.0673.74 ± 3.1374.02 ± 9.01
Com-BrainTF72.81 ± 4.4970.58 ± 4.5978.37 ± 4.7073.86 ± 3.0868.88 ± 2.7367.42 ± 4.1872.97 ± 3.8273.47 ± 3.74
BrainPrompt72.53 ± 3.7873.85 ± 4.7075.61 ± 6.5574.92 ± 3.6472.12 ± 3.4976.24 ± 3.5879.70 ± 5.8772.45 ± 3.81
Spec-RWKV73.27 ± 4.1874.97 ± 6.7077.04 ± 6.4175.86 ± 5.6472.87 ± 2.4674.64 ± 2.0870.18 ± 3.1776.31 ± 2.51
Note: Bold values indicate the best-performing results for each metric.
Table 4. Comparison with baseline methods on the AAL atlas. The ranking remains broadly consistent with the Schaefer results, indicating stable performance across parcellation schemes.
Table 4. Comparison with baseline methods on the AAL atlas. The ranking remains broadly consistent with the Schaefer results, indicating stable performance across parcellation schemes.
MethodABIDE-I (871 Subjects, 20 Sites)ADHD-200 (635 Subjects, 9 Sites)
ACC (%)Prec. (%)Rec. (%)AUC (%)ACC (%)Prec. (%)Rec. (%)AUC (%)
SVM63.74 ± 3.9952.35 ± 7.1863.60 ± 6.3569.90 ± 4.5357.96 ± 2.6056.96 ± 5.1657.82 ± 5.1659.40 ± 4.52
LSTM64.77 ± 4.1262.12 ± 9.7363.17 ± 7.2468.84 ± 3.7762.10 ± 3.8460.69 ± 4.1758.66 ± 6.0664.24 ± 5.40
CNN-LSTM64.49 ± 5.7057.31 ± 9.4064.79 ± 7.5771.40 ± 5.4163.58 ± 5.8258.24 ± 9.3361.68 ± 7.4460.37 ± 5.29
AttnLSTM72.56 ± 3.2871.89 ± 4.1275.62 ± 5.6174.68 ± 3.3573.29 ± 3.1468.90 ± 3.8569.43 ± 4.9376.52 ± 3.22
BrainNetCNN65.31 ± 4.0960.90 ± 8.5662.88 ± 4.4070.68 ± 5.5161.77 ± 3.7860.11 ± 4.5260.63 ± 7.9160.77 ± 4.01
PLSNet71.96 ± 3.3869.87 ± 3.4775.69 ± 3.5774.43 ± 3.1270.53 ± 3.1471.81 ± 2.0372.97 ± 4.8675.45 ± 2.78
MAHGCN71.31 ± 3.5269.40 ± 3.2770.09 ± 3.9371.11 ± 2.9769.69 ± 2.4971.36 ± 3.2870.19 ± 4.2371.86 ± 3.31
SwinT65.69 ± 4.4558.92 ± 7.4560.53 ± 0.5372.64 ± 4.0766.50 ± 4.6062.64 ± 4.2365.22 ± 9.2266.29 ± 4.45
BolT69.41 ± 2.1568.52 ± 4.0766.49 ± 4.2273.30 ± 3.5167.66 ± 3.4668.15 ± 4.0568.36 ± 5.0169.83 ± 3.74
STARFormer73.11 ± 2.8972.96 ± 2.1978.31 ± 3.4774.01 ± 2.7972.92 ± 2.4072.59 ± 2.0273.12 ± 3.2376.39 ± 2.45
Com-BrainTF70.56 ± 4.4268.53 ± 4.4177.21 ± 4.2575.37 ± 2.9666.87 ± 2.6069.74 ± 4.1070.73 ± 3.5972.06 ± 3.51
BrainPrompt73.38 ± 3.5272.78 ± 3.8576.84 ± 5.4275.47 ± 3.1873.99 ± 3.2670.03 ± 3.7270.57 ± 5.1577.70 ± 3.08
Spec-RWKV75.19 ± 2.9373.96 ± 2.1379.27 ± 3.4275.91 ± 2.8574.98 ± 2.3674.81 ± 2.0475.31 ± 3.1978.47 ± 2.50
Note: Bold values indicate the best-performing results for each metric.
Table 5. Leave-one-site-out (LOSO) results, where one site is held out entirely for testing and the model is trained on the remaining sites. Standard deviations reflect variation across held-out sites. On ABIDE-I, Spec-RWKV achieves the best aggregate AUC among the evaluated methods. Compared with mixed-site evaluation (Table 3), this stricter protocol remains consistent with a role for TR-aware modeling when the test site is entirely unseen.
Table 5. Leave-one-site-out (LOSO) results, where one site is held out entirely for testing and the model is trained on the remaining sites. Standard deviations reflect variation across held-out sites. On ABIDE-I, Spec-RWKV achieves the best aggregate AUC among the evaluated methods. Compared with mixed-site evaluation (Table 3), this stricter protocol remains consistent with a role for TR-aware modeling when the test site is entirely unseen.
MethodABIDE-I (20 Sites)ADHD-200 (9 Sites)
ACC (%)Prec. (%)Rec. (%)AUC (%)ACC (%)Prec. (%)Rec. (%)AUC (%)
SVM60.65 ± 9.2962.27 ± 10.9873.26 ± 17.8565.49 ± 10.2656.33 ± 7.2260.85 ± 10.4470.97 ± 15.7457.18 ± 6.80
BrainNetCNN62.73 ± 10.8666.48 ± 18.2265.57 ± 23.9169.68 ± 11.9752.77 ± 9.2459.41 ± 11.0860.86 ± 19.8653.97 ± 5.20
SwinT63.74 ± 14.3258.59 ± 17.4169.61 ± 10.6169.75 ± 13.9152.74 ± 6.6555.09 ± 10.7254.56 ± 10.4253.41 ± 6.58
BolT67.39 ± 10.5868.13 ± 12.6876.51 ± 18.0970.24 ± 12.6455.31 ± 7.9460.35 ± 12.1964.07 ± 15.6458.51 ± 6.08
PLSNet69.84 ± 13.2869.44 ± 13.4586.04 ± 14.1071.44 ± 13.0056.00 ± 4.4963.23 ± 7.7961.09 ± 14.0760.79 ± 4.24
STARFormer70.87 ± 12.8072.58 ± 12.1889.05 ± 13.9971.06 ± 12.6857.91 ± 8.9063.83 ± 9.7861.19 ± 12.7061.63 ± 5.97
AttnLSTM71.38 ± 10.4275.14 ± 11.3874.86 ± 14.1773.52 ± 10.6560.42 ± 9.1269.87 ± 10.2463.71 ± 13.5664.38 ± 7.89
BrainPrompt72.05 ± 9.8676.82 ± 10.2475.43 ± 13.5274.63 ± 9.8761.70 ± 8.7471.19 ± 9.5665.03 ± 12.8465.84 ± 7.23
Spec-RWKV72.78 ± 8.5279.05 ± 7.5372.22 ± 11.4375.86 ± 9.2165.70 ± 8.5869.94 ± 8.1260.26 ± 9.7167.13 ± 5.57
Note: Bold values indicate the best-performing results for each metric.
Table 6. Summary of per-site LOSO performance on ABIDE-I. BA, balanced accuracy; IQR, interquartile range. A higher mean BA with a lower spread indicates better cross-site stability.
Table 6. Summary of per-site LOSO performance on ABIDE-I. BA, balanced accuracy; IQR, interquartile range. A higher mean BA with a lower spread indicates better cross-site stability.
MethodBA MeanBA Std95% CIAUC MeanAUC Std95% CIIQR
Spec-RWKV0.73660.0843[0.697, 0.776]0.71860.1274[0.659, 0.778]0.078
BolT0.66610.0959[0.621, 0.711]0.74240.1211[0.686, 0.799]0.120
BrainPrompt0.68920.1086[0.637, 0.741]0.71560.1124[0.662, 0.769]0.128
BrainNetCNN0.63310.0761[0.598, 0.669]0.69680.1065[0.647, 0.747]0.103
AttnLSTM0.64380.1012[0.596, 0.691]0.67240.1385[0.607, 0.738]0.122
SVM0.59900.1083[0.548, 0.650]0.65490.1017[0.607, 0.703]0.099
Note: Bold values indicate the best-performing results for each metric.
Table 7. Site prediction from learned embeddings on ABIDE-I. Lower balanced accuracy indicates weaker site-discriminative information in the representation.
Table 7. Site prediction from learned embeddings on ABIDE-I. Lower balanced accuracy indicates weaker site-discriminative information in the representation.
MethodDim.Site BAChanceBA/Chancep-Value
AttnLSTM2560.08230.051.65×0.0010
Spec-RWKV2560.12380.052.48×0.005
BolT24000.21580.054.32×0.005
BrainPrompt2560.34120.056.82×0.005
Table 8. Output stability under simulated TR resampling on ABIDE-I. Time series were resampled to multiple target TR values via piecewise linear interpolation and re-evaluated with trained models. Because the evaluation set includes training samples, absolute AUC values should not be compared with the held-out results in Table 3; the focus is on relative stability across TR conditions.
Table 8. Output stability under simulated TR resampling on ABIDE-I. Time series were resampled to multiple target TR values via piecewise linear interpolation and re-evaluated with trained models. Because the evaluation set includes training samples, absolute AUC values should not be compared with the held-out results in Table 3; the focus is on relative stability across TR conditions.
Simulated TRSpec-RWKV AUCBrainPrompt AUCAttnLSTM AUC
1.5 s0.97160.91780.9356
2.0 s0.97870.91350.9382
2.5 s0.98150.90870.9408
3.0 s0.98290.89960.9271
4.0 s0.98170.91240.9098
Table 9. Ablation study results on ABIDE-I and ADHD-200. The full model achieves the best performance across both datasets.
Table 9. Ablation study results on ABIDE-I and ADHD-200. The full model achieves the best performance across both datasets.
ConfigurationABIDE-IADHD-200
ACC (%)Prec. (%)Rec. (%)AUC (%)ACC (%)Prec. (%)Rec. (%)AUC (%)
Full Model73.27 ± 4.1874.97 ± 6.7077.04 ± 6.4175.86 ± 5.6472.87 ± 2.4674.64 ± 2.0870.18 ± 3.1776.31 ± 2.51
w/o Prism+CWT+SATA71.41 ± 4.4373.95 ± 6.8574.15 ± 7.1774.55 ± 5.1465.85 ± 3.4969.20 ± 4.4971.03 ± 9.8766.37 ± 4.89
w/o PrismTimeMix72.10 ± 4.5674.09 ± 5.6774.80 ± 6.5674.65 ± 5.1966.51 ± 3.6069.53 ± 3.6972.28 ± 10.0667.17 ± 4.30
w/o SATA71.90 ± 4.3774.93 ± 6.1573.12 ± 6.1074.82 ± 6.0565.02 ± 3.1269.66 ± 4.4566.00 ± 12.0866.57 ± 3.70
w/o Prism+SATA72.05 ± 4.3273.40 ± 6.1876.74 ± 6.3675.23 ± 5.2765.35 ± 3.3468.79 ± 4.0569.70 ± 11.1866.38 ± 4.61
No-TR-Adapt71.56 ± 3.4572.13 ± 4.8275.68 ± 7.1273.92 ± 3.7171.36 ± 3.0172.11 ± 4.2368.86 ± 8.6474.79 ± 3.39
No-Spec-Guide70.89 ± 3.5671.56 ± 4.9574.21 ± 7.3472.78 ± 3.8370.51 ± 3.1070.83 ± 4.3567.69 ± 8.9172.99 ± 3.50
Note: Bold values indicate the best-performing results for each metric.
Table 10. Paired t-test results for ablation studies on ABIDE-I. Δ represents the improvement of the full model over each ablation configuration.
Table 10. Paired t-test results for ablation studies on ABIDE-I. Δ represents the improvement of the full model over each ablation configuration.
ComparisonMetricΔ (pp)t-Statisticp-ValueSig.
w/o Prism + CWT + SATAACC+1.862.9930.004**
AUC+1.312.1120.040*
Recall+2.892.1830.034*
w/o PrismTimeMixACC+1.171.9980.051
AUC+1.212.0640.044*
Recall+2.242.1470.037*
w/o SATAACC+1.382.6040.012*
AUC+1.042.2310.030*
Recall+3.922.8760.006**
w/o Prism + SATAACC+1.222.3660.022*
AUC+0.631.0480.300
Recall+0.300.4290.670
No-TR-AdaptACC+1.713.8660.004**
AUC+1.942.5080.033*
Recall+1.361.4690.176
No-Spec-GuideACC+2.383.3860.008**
AUC+3.081.6190.140
Recall+2.831.1600.276
Note: Δ represents improvement of the full model over ablation configuration (percentage points); * p < 0.05 , ** p < 0.01 .
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

Peng, S.; Xu, Q. Spec-RWKV: A Spectrum-Guided Multi-Scale Recurrent Modeling Framework for Multi-Center Resting-State fMRI-Assisted Diagnosis. Brain Sci. 2026, 16, 455. https://doi.org/10.3390/brainsci16050455

AMA Style

Peng S, Xu Q. Spec-RWKV: A Spectrum-Guided Multi-Scale Recurrent Modeling Framework for Multi-Center Resting-State fMRI-Assisted Diagnosis. Brain Sciences. 2026; 16(5):455. https://doi.org/10.3390/brainsci16050455

Chicago/Turabian Style

Peng, Sihang, and Qi Xu. 2026. "Spec-RWKV: A Spectrum-Guided Multi-Scale Recurrent Modeling Framework for Multi-Center Resting-State fMRI-Assisted Diagnosis" Brain Sciences 16, no. 5: 455. https://doi.org/10.3390/brainsci16050455

APA Style

Peng, S., & Xu, Q. (2026). Spec-RWKV: A Spectrum-Guided Multi-Scale Recurrent Modeling Framework for Multi-Center Resting-State fMRI-Assisted Diagnosis. Brain Sciences, 16(5), 455. https://doi.org/10.3390/brainsci16050455

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