The flowchart in Figure 1 illustrates the overall workflow for evaluating ischemic brain injury associated with RLS. Following the screening of patients with migraine or cryptogenic stroke, and the exclusion of significant vascular and systemic factors that might have contributed independently to brain parenchymal injury, 60 RLS-positive patients were selected into the final analytic group. Brain MRI classification was used to categorize 23 patients as MRI-negative and 37 as MRI-positive. On anatomical examination, 40 patients had simple RLS, whereas 20 had complex RLS. Shunt grading also revealed 27 Grade I, 9 Grade II, 15 Grade III, and 9 Grade IV. Taken together, these data indicate that the protocol can generate a systematically characterized cohort with standardized c-TCD, MRI, and echocardiographic data for phenotype-level analysis and regression modeling.
Multimodal results of interest are presented in Figure 2. The MRI images contain one MRI negative case that has no well-defined ischemic brain injury, one MRI positive case involving cerebral infarction, and one MRI positive case involving a white matter lesion. The c-TCD recordings demonstrate a small-shunt pattern as well as a large-shunt pattern, and the echocardiographic pictures show typical simple PFO and complex RLS phenotypes. In the cleaned analytic dataset (Table 2), the MRI-positive group comprised 17 patients with cerebral infarction, 17 with white matter lesions, and 3 with other MRI-positive ischemic findings. These example images illustrate how MRI classification, shunt grading, and anatomical phenotyping were defined prior to the formal statistical analysis.
The workflow also generated interpretable negative or lower-burden findings. The MRI-negative example in Figure 2A illustrates the expected negative neuroimaging output, and the small-shunt c-TCD example in Figure 2D illustrates a low-burden positive result. During screening, patients with no microbubble signal at rest or during an adequate Valsalva maneuver would be classified as Grade 0 and excluded from the RLS-positive analytic cohort. Suboptimal c-TCD acquisitions may occur when the Valsalva maneuver is poorly timed, when the patient cannot maintain adequate pressure, or when the temporal acoustic window is insufficient; in such cases, the maneuver should be retrained or repeated, and the acquisition should be flagged during data cleaning. In clinical practice, an initial non-diagnostic MRI scan may also be performed and should be repeated until interpretable; unsuccessful initial MRI images were not retained in this retrospective dataset and are therefore not shown in the representative figure.
Figure 3 shows the distribution of RLS phenotypes across MRI outcomes. In Figure 3A, the alluvial plot illustrates the flow of patients from anatomical type to shunt grade and then to MRI outcome. In Figure 3B, the bar chart shows the MRI-positive rate across combined RLS phenotype categories. MRI-positive findings were concentrated mainly in the complex RLS group with Grade II–IV shunt. More specifically, MRI-positive rates were 40.0% for simple RLS with Grade I shunt, 60.0% for simple RLS with Grade II–IV shunt, 50.0% for complex RLS with Grade I shunt, and 94.4% for complex RLS with Grade II–IV shunt. This pattern suggests that considering anatomical complexity alongside shunt burden may provide a more informative description of the risk of RLS-related ischemic brain injury than either feature alone.
Baseline and clinical characteristics stratified by MRI outcome are summarized in Table 1. Compared with the MRI-negative group, patients in the MRI-positive group were older, more frequently had Grade II–IV shunts, and more often showed complex RLS. Abnormal D-dimer results were also more common in the MRI-positive group, and the main pulmonary artery diameter tended to be larger. For example, the median age was 41 years in the MRI-positive group and 28 years in the MRI-negative group. Grade II–IV shunts were present in 70.3% versus 30.4% of patients, complex RLS in 48.6% versus 8.7%, and abnormal D-dimer in 37.8% versus 4.3%. Median main pulmonary artery diameter was 21 mm in the MRI-positive group and 20 mm in the MRI-negative group. Overall, the descriptive comparisons pointed in the same direction as the later regression results. Baseline SpO2 and post-activity SpO2 were extracted when available and are summarized in Table 1. These measurements did not differ significantly between MRI-negative and MRI-positive groups in the current cohort. However, formal arterial blood gas analysis, alveolar-arterial oxygen gradient, standardized positional oximetry, nocturnal oximetry, and polysomnography-based OSA assessment were not uniformly available in the retrospective dataset and were therefore excluded from the main model.
The independent factors associated with MRI-positive brain injury are presented in Figure 4 and Table 3. In univariable logistic regression, older age, Grade II–IV shunt, complex RLS, abnormal D-dimer, and a larger main pulmonary artery diameter were all associated with MRI-positive ischemic brain injury. After multivariable adjustment, age (OR = 1.154, 95% CI: 1.055–1.302, P = 0.006), Grade II–IV shunt (OR = 5.810, 95% CI: 1.112–39.747, P = 0.048), complex RLS (OR = 19.774, 95% CI: 2.344–303.428, P = 0.014), and abnormal D-dimer (OR = 16.653, 95% CI: 1.554–452.258, P = 0.039) remained independently associated with MRI-positive brain injury. By contrast, the main pulmonary artery diameter was no longer significant after adjustment (OR = 1.032, 95% CI: 0.535–2.033, P = 0.925). Because the sample size was limited and some phenotype categories were sparse, Firth penalized logistic regression was further used as a sensitivity analysis. In that model, age, complex RLS, and abnormal D-dimer remained significant, whereas Grade II–IV shunt showed borderline significance. This overall pattern was broadly consistent with the main model.
Exploratory model-performance analyses are shown in Figure 5. The receiver operating characteristic curves suggest that the combined model, which included age, shunt volume, anatomical type, D-dimer status, and main pulmonary artery diameter, had better apparent discrimination than the age-only model or the RLS-feature model. The calibration plot and Brier score provided an additional exploratory assessment of model fit. Supplementary Figure 1 further shows that patients in the MRI-positive group were generally older than those in the MRI-negative group, while Supplementary Figure 2 shows that predicted probabilities from the combined model were higher in the MRI-positive group. These analyses are presented as representative outputs of the protocol and should be interpreted as exploratory rather than as evidence of external validation.

Figure 1: Standardized workflow for RLS-related ischemic brain injury assessment. This workflow shows the overall procedure for assessing RLS-related ischemic brain injury, including patient screening, exclusion of major vascular and systemic risk factors, final cohort definition, c-TCD confirmation of right-to-left shunt, brain MRI classification, TTE and/or TEE anatomical assessment, structured data extraction, dataset cleaning, and representative statistical outputs. The final analytic cohort comprised 60 RLS-positive patients. MRI classification identified 23 MRI-negative patients and 37 MRI-positive patients. Anatomical assessment classified 40 patients as having simple RLS and 20 as having complex RLS. Shunt grading showed 27 Grade I, 9 Grade II, 15 Grade III, and 9 Grade IV cases. Representative outputs included phenotype visualization, regression modeling, and exploratory ROC and calibration analyses. Abbreviations: RLS = right-to-left shunt; c-TCD = contrast-enhanced transcranial Doppler ultrasound; MRI = magnetic resonance imaging; TTE = transthoracic echocardiography; TEE = transesophageal echocardiography; PFO = patent foramen ovale; ASD = atrial septal defect; ROC = receiver operating characteristic. Please click here to view a larger version of this figure.

Figure 2: Representative neuroimaging, c-TCD, and echocardiographic findings. (A) Representative MRI-negative case showing no definite ischemic brain injury on diffusion-weighted imaging (DWI), fluid-attenuated inversion recovery (FLAIR), and T2-weighted imaging (T2WI). (B) Representative MRI-positive case with cerebral infarction. (C) Representative MRI-positive case with white matter lesion. (D) Representative c-TCD image showing a small shunt, characterized by a limited number of high-intensity transient signals (HITS grade I). (E) Representative c-TCD image showing a large shunt, corresponding to Grade IV in the study grading system. (F) Representative TTE/TEE image of a simple patent foramen ovale (PFO). (G) Representative TTE/TEE image of complex RLS, illustrated here by a large right-to-left shunt with atrial septal aneurysm. These representative images illustrate how multimodal imaging and examination findings were used for MRI classification, shunt grading, and anatomical phenotyping prior to statistical analysis. Abbreviation: MRI = magnetic resonance imaging; DWI = diffusion-weighted imaging; FLAIR = fluid-attenuated inversion recovery; T2WI = T2-weighted imaging; c-TCD = contrast-enhanced transcranial Doppler ultrasound; HITS = high-intensity transient signals; TTE = transthoracic echocardiography; TEE = transesophageal echocardiography; PFO = patent foramen ovale; RLS = right-to-left shunt. Please click here to view a larger version of this figure.

Figure 3: Distribution of RLS phenotypes and MRI findings. (A) Alluvial plot showing the distribution of patients across anatomical type, shunt grade, and MRI outcome. (B) Bar chart showing the MRI-positive rate across combined RLS phenotype categories. Values above the bars indicate the number of MRI-positive cases over the total number of cases, together with the corresponding MRI-positive percentage. MRI-positive findings were most frequent in complex RLS with Grade II–IV shunt. Abbreviations: RLS = right-to-left shunt; MRI = magnetic resonance imaging. Please click here to view a larger version of this figure.

Figure 4: Independent factors associated with MRI-positive brain injury in multivariable logistic regression. Forest plot showing odds ratios (ORs) and 95% confidence intervals (CIs) from the multivariable logistic regression model for MRI-positive ischemic brain injury. Horizontal lines represent 95% CIs rather than SD or SEM. The model comprised age, Grade II-IV shunt, complex RLS, abnormal D-dimer, and main pulmonary artery diameter. ORs are shown on a logarithmic scale. Because the sample size was small and some phenotype categories were sparse, the effect estimates should be interpreted with caution. Firth penalized logistic regression was performed as a sensitivity analysis. Abbreviations: RLS = right-to-left shunt; OR = odds ratio; CI = confidence interval; MPA = main pulmonary artery; SD = standard deviation; SEM = standard error of the mean. Please click here to view a larger version of this figure.

Figure 5: Exploratory ROC and calibration analysis of the age-only, RLS-feature, and combined models. (A) The receiver operating characteristic (ROC) curves of the age-only model, the RLS-feature model, and the combined model. The respective areas under the curve (AUCs) are shown in the figure. (B) Calibration plot for the combined model, with grouped observed event rates plotted against mean predicted probabilities. The Brier score is shown as a summary measure of calibration. These analyses are presented as exploratory outputs of the protocol and should not be interpreted as external validation of a prediction model. Abbreviations: ROC = receiver operating characteristic; AUC = area under the curve; RLS = right-to-left shunt. Please click here to view a larger version of this figure.
| Variable | Total | MRI-negative | MRI-positive | P value |
| Age, years | 35.50 (28.00, 47.25) | 28.00 (21.50, 34.00) | 41.00 (32.00, 51.00) | <0.001 |
| Height, cm | 161.00 (157.00, 168.25) | 161.00 (158.00, 169.00) | 160.00 (157.00, 168.00) | 0.307 |
| Weight, kg | 55.00 (51.75, 64.00) | 55.00 (50.50, 63.50) | 57.50 (52.00, 64.00) | 0.819 |
| BSA, m2 | 1.56 (1.50, 1.73) | 1.55 (1.50, 1.77) | 1.58 (1.52, 1.70) | 0.681 |
| BMI, kg/m2 | 21.55 (20.54, 23.02) | 21.01 (20.18, 21.98) | 21.78 (20.76, 23.51) | 0.091 |
| Baseline SpO2, % | 98.00 (97.00, 98.00) | 97.00 (97.00, 98.00) | 98.00 (97.00, 98.00) | 0.726 |
| SpO2 after activity, % | 96.00 (95.00, 97.00) | 96.00 (95.00, 97.00) | 96.00 (96.00, 97.00) | 0.509 |
| MPA diameter, mm | 20.50 (19.75, 21.00) | 20.00 (19.00, 21.00) | 21.00 (20.00, 22.00) | 0.023 |
| Male | 20 (33.3%) | 7 (30.4%) | 13 (35.1%) | 0.707 |
| Grade II–IV shunt | 33 (55.0%) | 7 (30.4%) | 26 (70.3%) | 0.003 |
| Non-Valsalva-induced RLS | 36 (60.0%) | 13 (56.5%) | 23 (62.2%) | 0.665 |
| Complex RLS | 20 (33.3%) | 2 (8.7%) | 18 (48.6%) | 0.001 |
| Moderate/heavy manual work | 6 (10.0%) | 1 (4.3%) | 5 (13.5%) | 0.391 |
| Residence in southern China | 29 (48.3%) | 14 (60.9%) | 15 (40.5%) | 0.126 |
| Married | 38 (63.3%) | 9 (39.1%) | 29 (78.4%) | 0.002 |
| Have children | 35 (58.3%) | 8 (34.8%) | 27 (73.0%) | 0.004 |
| Oral contraceptive use (among women) | 3 (7.5%) | 1 (6.3%) | 2 (8.3%) | 1.000 |
| Anxiety or depression | 18 (30.0%) | 8 (34.8%) | 10 (27.0%) | 0.524 |
| Family history of migraine | 13 (21.7%) | 7 (30.4%) | 6 (16.2%) | 0.215 |
| Abnormal inflammatory markers | 13 (21.7%) | 3 (13.0%) | 10 (27.0%) | 0.334 |
| D-dimer abnormal | 15 (25.0%) | 1 (4.3%) | 14 (37.8%) | 0.004 |
| Tricuspid regurgitation | 7 (11.7%) | 2 (8.7%) | 5 (13.5%) | 0.697 |
Table 1: Baseline and clinical characteristics according to MRI outcome. Categorical variables are presented as n (%). Continuous variables with a skewed distribution are presented as median (Q1, Q3), unless otherwise specified. Differences between the MRI-negative and MRI-positive groups were assessed using the χ2 test or Fisher’s exact test for categorical variables, and the independent-samples t-test or Mann–Whitney U test for continuous variables, as appropriate. Abbreviations: MRI = magnetic resonance imaging; RLS = right-to-left shunt; BMI = body mass index; CRP = C-reactive protein; hsCRP = high-sensitivity C-reactive protein; SpO₂ = peripheral oxygen saturation; MPA = main pulmonary artery. D-dimer values reported as “<0.10 mg/L” were coded as not increased. For oral contraceptive use, percentages were calculated only among women. Variables with no observed events in either group were not highlighted in the inferential interpretation.
| Part A. Distribution of anatomical type across shunt grades |
| Anatomy type | Grade I | Grade II | Grade III | Grade IV |
| Simple RLS | 25 (62.5%) | 5 (12.5%) | 6 (15%) | 4 (10%) |
| Complex RLS | 2 (10%) | 4 (20%) | 9 (45%) | 5 (25%) |
| Part B. MRI-positive rate across combined RLS phenotype categories |
| RLS combined group | Total(n) | MRI positive n | MRI positive rate | Result |
| Complex + Grade I | 2 | 1 | 50 | 1/2 (50%) |
| Complex + Grade II–IV | 18 | 17 | 94.4 | 17/18 (94.4%) |
| Simple + Grade I | 25 | 10 | 40 | 10/25 (40%) |
| Simple + Grade II–IV | 15 | 9 | 60 | 9/15 (60%) |
Table 2: RLS phenotype distribution and MRI-positive rate. This table presents the distribution of shunt grade within the simple and complex RLS groups, together with the MRI-positive rates across the combined RLS phenotypes. Shunt grade was classified from c-TCD findings as Grade I, Grade II, Grade III, or Grade IV. For the combined phenotype analysis, it was also grouped as Grade I versus Grade II–IV. The combined phenotype categories were simple RLS with Grade I shunt, simple RLS with Grade II–IV shunt, complex RLS with Grade I shunt, and complex RLS with Grade II–IV shunt. Abbreviations: MRI = magnetic resonance imaging; RLS = right-to-left shunt; c-TCD = contrast-enhanced transcranial Doppler ultrasound.
| Variable | Univariable OR (95% CI) | Univariable P value | Multivariable OR (95% CI) | Multivariable P value | Firth OR (95% CI) | Firth P value |
| Male sex | 1.238 (0.411–3.921) | 0.707 | | | | |
| Age, per year | 1.116 (1.054–1.196) | <0.001 | 1.154 (1.055–1.302) | 0.006 | 1.124 (1.039–1.249) | 0.002 |
| Grade II–IV shunt | 5.403 (1.802–17.733) | 0.004 | 5.810 (1.112–39.747) | 0.048 | 4.344 (0.965–24.038) | 0.056 |
| Non-Valsalva-induced RLS | 1.264 (0.434–3.663) | 0.665 | | | | |
| Complex RLS | 9.947 (2.439–67.951) | 0.005 | 19.774 (2.344–303.428) | 0.014 | 11.230 (1.711–119.491) | 0.010 |
| Moderate/heavy manual work | 3.438 (0.508–68.275) | 0.274 | | | | |
| Residence in southern China | 0.438 (0.147–1.253) | 0.129 | | | | |
| Married | 5.639 (1.850–18.646) | 0.003 | | | | |
| Have children | 5.062 (1.697–16.328) | 0.005 | | | | |
| BMI, per kg/m2 | 1.286 (0.952–1.792) | 0.113 | | | | |
| Anxiety or depression | 0.694 (0.224–2.172) | 0.525 | | | | |
| Family history of migraine | 0.442 (0.123–1.542) | 0.200 | | | | |
| Abnormal inflammatory markers | 2.469 (0.655–12.081) | 0.210 | | | | |
| D-dimer abnormal | 13.391 (2.381–252.919) | 0.016 | 16.653 (1.554–452.258) | 0.039 | 8.995 (1.115–127.081) | 0.038 |
| Baseline SpO2, per 1% | 1.019 (0.603–1.719) | 0.944 | | | | |
| SpO2 after activity, per 1% | 1.186 (0.695–2.068) | 0.534 | | | | |
| Tricuspid regurgitation | 1.641 (0.320–12.199) | 0.575 | | | | |
| MPA diameter, per mm | 1.645 (1.095–2.668) | 0.027 | 1.032 (0.535–2.033) | 0.925 | 1.026 (0.572–1.888) | 0.931 |
Table 3: Univariable, multivariable, and Firth penalized logistic regression analyses for MRI-positive ischemic brain injury. Odds ratios (ORs) with 95% confidence intervals (CIs) are presented for candidate factors associated with MRI-positive ischemic brain injury. Univariable logistic regression was first used to screen candidate variables. The main multivariable model included age, Grade II–IV shunt, complex RLS, abnormal D-dimer, and main pulmonary artery diameter. Given the limited sample size and the sparse distribution in several phenotype categories, Firth penalized logistic regression was additionally performed as a sensitivity analysis. Abbreviations: MRI = magnetic resonance imaging; RLS = right-to-left shunt; OR = odds ratio; CI = confidence interval; MPA = main pulmonary artery.
Supplementary Figure 1: Age distribution according to MRI outcome. Violin-box plot showing age distribution in MRI-negative and MRI-positive patients. The center line in each box represents the median; the box represents the interquartile range; whiskers represent 1.5 times the interquartile range; and points represent individual patients. Abbreviations: MRI = magnetic resonance imaging. Please click here to download this file.
Supplementary Figure 2: Distribution of predicted probability by MRI outcome. Violin-box plot showing predicted probabilities from the combined model according to MRI outcome. The combined model included age, shunt grade, anatomical type, D-dimer status, and main pulmonary artery (MPA) diameter. The center line in each box represents the median; the box represents the interquartile range; whiskers represent 1.5 times the interquartile range; and points represent individual patients. Abbreviations: MRI = magnetic resonance imaging; MPA = main pulmonary artery. Please click here to download this file.
Supplementary Table 1: Brain MRI acquisition parameters used in the present cohort. Acquisition parameters for the routine brain magnetic resonance imaging (MRI) protocol used to evaluate ischemic brain injury, including T1-weighted imaging (T1WI), T2-weighted imaging (T2WI), fluid-attenuated inversion recovery (FLAIR), diffusion-weighted imaging (DWI), and time-of-flight magnetic resonance angiography (TOF-MRA). The table summarizes the sequence-specific repetition time (TR), echo time (TE), inversion time (TI) or b value, slice thickness, interslice gap, and additional acquisition notes. Abbreviations: MRI = magnetic resonance imaging; TR = repetition time; TE = echo time; TI = inversion time; T1WI = T1-weighted imaging; T2WI = T2-weighted imaging; FLAIR = fluid-attenuated inversion recovery; DWI = diffusion-weighted imaging; TOF-MRA = time-of-flight magnetic resonance angiography. Please click here to download this file.