Abstract
Background/Objectives: Spontaneous intracranial hypotension (SIH) is caused by spinal cerebrospinal fluid (CSF) leakage and is typically diagnosed by clinical presentation and characteristic MRI signs; however, objective tools for monitoring physiological changes and treatment response remain limited. Cine phase-contrast MRI (PC-MRI) enables noninvasive quantification of aqueductal CSF dynamics, yet reliable analysis is challenging since the cerebral aqueduct is extremely small and susceptible to low contrast, partial volume effects, and ROI-dependent measurement variability—particularly in SIH where CSF pulsatility is often reduced. Methods: We propose an end-to-end automated framework that integrates (1) a cascade localization–segmentation strategy, consisting of Tiny YOLOv4 detection followed by MultiResUNet segmentation on a YOLOv4-derived cropped ROI; (2) physiology-informed pulsatility-based segmentation (PUBS) to refine anatomical masks into functional flow ROIs; and (3) one-dimensional convolutional neural networks (1D-CNNs) to extract exploratory waveform morphology features from 32-phase cardiac-cycle velocity waveforms. The study includes 39 participants, yielding 59 cine PC-MRI examinations: 11 controls, 28 Pre-treatment SIH scans and 20 Post-treatment Recovery scans. Results: The cascade model significantly improves segmentation robustness compared with a full-image baseline, achieving higher Dice scores and markedly lower boundary errors across cohorts (e.g., Pre-treatment SIH HD95: 1.66 ± 0.74 px vs. 15.37 ± 44.98 px). PUBS refinement reduces quantification deviation from expert manual references in SIH (mean relative error: 7.4% to 5.6%) and improves diagnostic performance for multiple hemodynamic parameters (e.g., downward mean flow AUC: 0.747 to 0.792). For waveform morphology analysis, the end-to-end 1D-CNN classifier was evaluated using repeated-seed participant-level grouped LOOCV. The repeated-seed ensemble prediction showed modest out-of-sample discrimination between Normal controls and Pre-treatment SIH scans, with an AUC of 0.646, a bootstrap 95% confidence interval of 0.455–0.826, and a permutation-test p-value of 0.072. Separately, exploratory analysis of the final baseline-trained 1D-CNN latent space showed marked, apparent Normal-versus-SIH separability and an intermediate recovery distribution in PCA space, suggesting that aqueductal waveform morphology may encode SIH-related physiological information. Conclusions: These findings suggest that SIH-related information may be reflected not only in flow magnitude but also in aqueductal CSF waveform morphology. However, the modest and statistically non-significant out-of-sample performance of the end-to-end 1D-CNN classifier indicates that morphology-based AI features should currently be regarded as exploratory biomarker candidates rather than validated stand-alone diagnostic tools. Larger independent cohorts are required to confirm their reproducibility, physiological meaning, and clinical utility.
1. Introduction
Spontaneous intracranial hypotension (SIH) is a potentially debilitating disorder caused by cerebrospinal fluid (CSF) leakage from the spinal thecal sac. This leakage reduces intracranial CSF volume and pressure [1]. Clinically, SIH is characterized by orthostatic headache and typical magnetic resonance imaging (MRI) findings. These findings include pachymeningeal enhancement, pituitary hyperemia, venous engorgement, and brain sagging [2,3]. Epidural blood patching (EBP) is a standard treatment for SIH. However, routine clinical practice still lacks reliable and objective tools to monitor treatment response and to characterize the underlying physiological changes [4,5].
Evidence suggests that SIH is not only a disorder of CSF volume loss. It also involves altered craniospinal biomechanics and compliance. When intracranial CSF volume decreases, compensatory mechanisms change the intracranial pressure–volume relationship. This change can alter intracranial elastance and craniospinal coupling [6,7,8,9]. These biomechanical changes are expected to affect CSF flow dynamics across the craniospinal axis, including the cervical spine [10], and especially in the cerebral aqueduct. The aqueduct is a narrow conduit and may be sensitive to small changes in intracranial compliance. Computational and mechanistic models also suggest that brain deformability and fluid–structure interaction (FSI) can shape aqueductal CSF waveforms. These effects include bidirectional flow components that may be missed by rigid-wall assumptions [11]. Therefore, aqueductal CSF flow waveforms may contain physiological information beyond conventional scalar measures.
Phase-contrast MRI (PC-MRI) is a noninvasive clinical tool for quantifying CSF flow dynamics. In current practice, clinicians often define aqueduct regions of interest (ROIs) manually using magnitude images. They then report scalar parameters, such as peak velocity or stroke volume, which may be underestimated when ROI placement is affected by boundary errors [12,13,14,15]. Accurate aqueduct quantification remains difficult. The aqueduct occupies only a tiny fraction of the image and is sensitive to partial-volume effects, phase noise, and physiological motion. Net-flow measurements can also be confounded by respiratory influences [15,16,17]. These problems are more pronounced in SIH. Aqueductal CSF velocities are often lower than in conditions with higher pulsatility. This reduction weakens flow-related contrast and increases uncertainty in ROI delineation [12,13,14].
Early semiautomatic approaches showed that anatomically plausible ROIs may not produce physiologically reliable measurements. This issue is critical for peak-related metrics, which are sensitive to ROI boundaries and partial-volume effects [17]. To address this, physiology-informed methods have been proposed. For example, pulsatility-based segmentation (PUBS) uses temporal consistency across the cardiac cycle to identify functional flow regions rather than relying only on anatomical intensity [18]. However, most pipelines still focus on spatial segmentation. They then compress the waveform into a small set of scalar metrics, leaving much of its temporal information underutilized.
Deep learning has improved automation in medical image analysis [19]. Object detection models such as YOLO can localize small targets in complex anatomical backgrounds [20,21]. Segmentation networks such as U-Net and its variants (including MultiResUNet) can delineate small structures using multi-scale features [22,23]. Deep learning has also been used for automated aqueduct CSF flow analysis [24]. In parallel, one-dimensional convolutional neural networks (1D-CNNs) can extract morphological features from biomedical time-series signals. This enables waveform characterization beyond point-based measurements [25,26,27]. Although AI-assisted quantitative PC-MRI has recently shown promise for assessing cervical CSF flow in SIH [10], aqueductal CSF flow analysis presents distinct technical challenges because of the extremely small size of the cerebral aqueduct, low flow-related contrast, and ROI-dependent measurement variability. To our knowledge, an integrated framework combining spatial localization, physiology-informed refinement, and waveform-morphology learning has not yet been explored for aqueductal CSF flow analysis in SIH.
In this study, we develop a fully automated end-to-end framework to quantify aqueductal CSF flow dynamics in SIH using cine PC-MRI. Our method includes:
(1) cascade localization and segmentation to delineate the aqueduct in low-contrast images,
(2) pulsatility-based refinement to obtain physiologically meaningful flow ROIs, and
(3) 1D-CNN–based waveform analysis to extract morphology-related features beyond conventional scalar metrics.
By combining spatial accuracy with temporal waveform analysis, our framework aims to improve the reproducibility of aqueductal CSF flow quantification and to explore waveform-based signatures that may support longitudinal assessment.
2. Materials and Methods
2.1. Study Population
A total of 39 participants were included in this retrospective study, yielding 59 cine PC-MRI examinations. The examinations were analyzed in three groups: (1) Normal control scans (N = 11), (2) Pre-treatment SIH scans (N = 28), and (3) Post-treatment Recovery scans (N = 20), which were obtained from patients in the Pre-treatment SIH cohort after epidural blood patching and clinical/radiological recovery on follow-up imaging. The study was approved by the Institutional Review Board of Taichung Veterans General Hospital (IRB-CE22242B).
2.2. Image Acquisition
Phase-contrast MRI (PC-MRI) was performed using a 1.5T scanner (MAGNETOM Aera, Siemens Healthcare, Erlangen, Germany). The scan plane was positioned perpendicular to the aqueduct of Sylvius at the level of the midbrain. Imaging parameters were as follows: velocity encoding (venc) = 20 cm/s; repetition time (TR) = 134 ms; echo time (TE) = 10 ms; flip angle = 10°; field of view (FOV) = 140 mm; matrix size = 384 × 384 pixels; and slice thickness = 5 mm. A total of 32 cardiac phases were reconstructed retrospectively using electrocardiogram (ECG) gating to cover the entire cardiac cycle.
2.3. Cascade Deep Learning Framework
A cascade “localization-then-segmentation” framework was implemented to segment the cerebral aqueduct from low-contrast magnitude images, especially in SIH. The cascade approach was compared with a direct full-image segmentation model. The computational pipeline and statistical analyses were implemented using MATLAB R2025a (The MathWorks, Inc., Natick, MA, USA) [28].
2.3.1. Stage 1: Midbrain Localization Model
Midbrain localization was performed using a Tiny YOLOv4 object detector [21] (Figure 1). To ensure robust feature learning independent of the clinical evaluation cohort, midbrain localization was trained using a dedicated dataset of 100 independent subjects. This localization dataset had no subject-level or scan-level overlap with either the MultiResUNet segmentation dataset or the clinical analysis cohort. Each participant contributed exactly one representative static magnitude image (total N = 100 images). The dataset was randomly partitioned into training (70%, N = 70), validation (15%, N = 15), and testing (15%, N = 15) sets. Data augmentation was applied exclusively during training. Anchor boxes were estimated using an IoU-based distance metric to cluster ground-truth boxes into six anchors. The network was trained for 120 epochs using the Adam optimizer (mini-batch size = 8) with L2 regularization of 5 × 10−4. The input resolution was 416 × 416 pixels. For the object detection component, the model optimized a multi-part loss function rather than simple epoch-by-epoch classification accuracy. The training and validation loss curves demonstrated rapid and stable convergence without obvious divergence between the two curves (Supplementary Figure S1). Furthermore, when evaluated on the independent test set, the model achieved an Average Precision (AP) of 86.67%. The precision–recall analysis showed that precision remained 1.000 up to a recall of 0.867, indicating no false-positive localizations within this operating range (Supplementary Figure S2). During inference, the predicted midbrain bounding box defined the center for cropping a fixed 96 × 96-pixel ROI. This cropping reduced background noise and standardized the input for downstream segmentation.
Figure 1.
Architecture of the Tiny YOLOv4 network used for midbrain localization. The model consists of a CSPDarknet53-tiny backbone and a feature pyramid network for multi-scale detection, based on the YOLOv4/Scaled-YOLOv4 framework [20,21].
2.3.2. Stage 2: Deep Learning Segmentation Strategies
Two segmentation strategies based on MultiResUNet [22] were implemented (Figure 2). MultiResUNet was selected for multi-scale feature extraction using MultiRes blocks and for bridging encoder–decoder features using ResPaths.
Figure 2.
Proposed MultiResUNet architecture. The illustrated model processes a cropped 96 × 96 ROI. It uses MultiRes Blocks (yellow) to extract multi-scale spatial features through cascaded convolutional operations that approximate multiple receptive fields, and ResPaths (green) to reduce the semantic gap between encoder and decoder features. The comparative baseline model used the same network architecture but operated on 384 × 384 full-field inputs, with the mini-batch size reduced to 4 to accommodate memory constraints.
- (1)
- Proposed Cascade Strategy (Cropped Input):
To capture sufficient anatomical variance, this model was trained on a separate, distinct dataset of 100 independent subjects (one static image per subject, total N = 100 images), which had no overlap with the YOLO localization dataset or the clinical analysis cohort. The dataset was split using an 80/20 hold-out approach, allocating 80% for training (N = 80) and 20% for validation (N = 20) to monitor training behavior and validation loss. Furthermore, the segmentation network was trained on the 96 × 96-pixel ROI produced by YOLO. This design reduced class imbalance by focusing on the target region. A weighted pixel-wise cross-entropy loss was used with a fixed penalty weight (weight factor = 1.5) for the aqueduct class. Training used Adam (learning rate = 10−4), mini-batch size = 16, and augmentation (rotation ±15°, translation ±10 pixels) for 200 epochs. To evaluate the training dynamics of the segmentation network, both training and validation loss, alongside segmentation accuracy, were monitored across the training epochs. The validation curves closely tracked the training curves throughout the 200-epoch training process, suggesting stable learning behavior without obvious overfitting (Supplementary Figure S3).
- (2)
- Baseline Full-Image Strategy:
For comparison, a baseline MultiResUNet model was trained on full-field images (384 × 384 pixels) without prior localization. The core optimizer and augmentation strategy were kept consistent with the cascade model, whereas the mini-batch size, number of epochs, and class-weighting strategy were adjusted to accommodate the full-field input setting. For the full-image baseline, the mini-batch size was reduced to 4 because of the higher memory demand of the 384 × 384 input, and the training duration was set to 50 epochs. Because the full-image model used one-fourth of the mini-batch size used by the cropped cascade model, this design yielded a comparable number of gradient-update iterations under a similar computational budget. In full-field scans, aqueduct pixels were extremely sparse and occupied <0.1% of the image area. To handle this class imbalance, median frequency balancing was used to compute class weights dynamically. This approach differed from the cascade model, which used a fixed class weight. Dynamic weighting was needed to prevent the background class from dominating the gradients during training.
After training, both the cascade model and the full-image baseline model were evaluated on the clinical analysis cohort, which was not used for model training or validation. Segmentation performance was assessed separately in Normal controls, Pre-treatment SIH patients, and Post-treatment Recovery scans using expert manual annotations as the reference standard.
2.4. Physiological Refinement: Pulsatility-Based Segmentation (PUBS)
An anatomical mask could include noise and partial-volume pixels. Therefore, the PUBS algorithm [18] was applied to derive a functional flow ROI. First, a representative reference velocity waveform was obtained from the raw mask using a clustering approach. Next, a pixel-wise correlation map was computed by measuring temporal similarity between each pixel waveform (within a dilated mask) and the reference waveform. The cross-correlation coefficient () is defined in Equation (1) [18]. The reference waveform and each pixel waveform were compared across the cardiac cycle (N = 32 phases), after subtracting their temporal means.
where represents the velocity waveform of the reference and represents the velocity at location at the cardiac phase. and denote their respective temporal means over the cardiac cycle (N = 32 phases).
To identify the most stable region for flow quantification, an automated plateau identification algorithm was implemented to determine the optimal correlation threshold (). The fundamental assumption was that within the true lumen, the calculated flow should exhibit minimal sensitivity to slight variations in the threshold, thereby mitigating partial volume effects at the boundaries. Mean flow rates were calculated across a predefined threshold range ( = 0.50 to 0.84, increment = ). To identify the region least sensitive to threshold variations, a sliding window ( = 0.10) was applied to compute the local coefficient of variation () along the flow curve. The at each candidate threshold was computed as:
where and denote the standard deviation and the mean of the flow rates within the specified window, respectively. The optimal threshold () was then selected as the threshold yielding the minimum :
The rationale for computationally defining this plateau by minimizing the local of the calculated flow rather than merely relying on geometric pixel count was physiologically motivated. Calculating the plateau based on flow (Area Velocity) inherently assigned lower mathematical weights to noisy low-velocity peripheral pixels that were subject to partial volume effects while simultaneously emphasizing the high-velocity core luminal signal. This ensured that the optimal threshold was selected at the point of maximum functional stability rather than mere spatial consistency.
Once the optimal threshold () was determined, it was applied to the pixel-wise cross-correlation coefficient map. Pixels with a correlation value ( higher than this optimal threshold were kept. These pixels formed the functional region of interest (ROI). The ROI was then used for subsequent flow quantification.
2.5. Background Correction
Prior to flow analysis, phase offset errors caused by eddy currents were corrected using a local background correction method [29,30]. We specifically targeted the midbrain region for this correction because phase offset errors were spatially inhomogeneous. Static tissue near the aqueduct provided a more accurate estimate of the local phase baseline. This estimate was more reliable than one derived from distant brain regions.
An automated algorithm partitioned the midbrain region into an 8 × 8 grid. To prevent signal contamination from the high-velocity CSF flow, an “exclusion zone” was established by dilating the aqueduct ROI with a disk structuring element (radius = 6 pixels). Grid cells overlapping with this exclusion zone or containing insufficient tissue pixels were automatically excluded. From the remaining candidates, the algorithm identified the optimal “static” tissue by selecting the top 8 grid cells with the lowest temporal standard deviation (t-SD) of phase velocity. The automated background selection procedure is illustrated in Figure 3.
Figure 3.
Automated local background correction strategy. The midbrain region is divided into an 8 × 8 grid to identify static tissue. The red contour delineates the exclusion zone (dilated from the aqueduct) to avoid periaqueductal pulsatility artifacts. The green rectangles highlight the final selected background ROIs, which are characterized by the lowest temporal standard deviation values outside the exclusion zone and are used for velocity offset correction.
The t-SD for each grid () was calculated as:
where denotes the number of cardiac phases (N = 32), denotes the mean velocity of the grid at phase , and is the temporal average velocity over the cardiac cycle. This metric effectively differentiated static tissue (low t-SD) from pulsatile vascular structures (high t-SD). The mean phase velocity across these selected stable regions was calculated for each time frame and subtracted from the aqueduct velocity. This mechanism was designed to provide stable baseline correction even in the presence of surrounding physiological motion.
2.6. Hemodynamic Parameter Calculation
Based on the refined functional ROI, a comprehensive set of hemodynamic parameters was calculated for each examination. These parameters were categorized into volumetric, flow rate, and velocity metrics [12,13,14,15]:
- (1)
- Stroke Volume Metrics (mL/cycle):
- Upward CSF total flow: Integral of flow during the diastolic (cranial) phase (the volume of CSF returning towards the third ventricle).
- Downward CSF total flow: Integral of flow during the systolic (caudal) phase (the volume of CSF displaced towards the spinal canal).
- Absolute stroke volume: Sum of the absolute upward and downward volumes.
- (2)
- Flow Rate Metrics (mL/s):
- Upward Mean Flow: Calculated for the upward (cranial) phases.
- Downward Mean Flow: Calculated for the downward (caudal) phases.
- Total Mean Flow: Calculated as the sum of absolute Upward and Downward Mean Flow to assess the overall magnitude and pulsatile intensity of the CSF.
- Upward Peak Flow: The maximum instantaneous flow rate recorded during the upward phases.
- Downward Peak Flow: The most negative instantaneous flow rate recorded during the downward phases.
- Summation of Peak Flow: Calculated by adding the absolute Upward and Downward Peak Flow, also derived to characterize the peak-to-peak flow amplitude.
- (3)
- Velocity Metrics (cm/s):
- Upward Peak Velocities: The maximum pixel velocity identified within the ROI during the upward (diastolic) phases.
- Downward Peak Velocities: The most negative pixel velocity identified within the ROI during the downward (systolic) phases.
2.7. Waveform Morphology Analysis Using 1D-CNN
2.7.1. Input Data Extraction and Preprocessing
Since the peak velocity of aqueduct flow is an effective feature for distinguishing between Normal controls and SIH patients [13], we used a method to extract the top 5% peak velocity of each examination. To ensure the robustness of the extracted features and minimize single-pixel noise, the process was as follows:
Let denote the velocity at a spatial coordinate within the binary mask from the PUBS-defined ROI, at a given time point in the cardiac cycle. The set of all velocity values within the ROI at time was defined as:
To identify the top 5% highest magnitudes, we first defined the percentile threshold based on the absolute values of the pixels in :
We then defined the subset of “strong pixels” , which contained the original velocity values whose magnitudes were greater than or equal to this threshold:
Finally, the peak velocity curve at time , denoted as , is the arithmetic mean of the values in :
2.7.2. Normalization and Hybrid Feature Strategy
Subsequently, the extracted 32-point temporal waveform ( was used to derive two complementary categories of measurements:
- (1)
- Hemodynamic Parameter: Physiologically, the peak flow of CSF reflects the dominant systolic component of CSF pulsation. To capture this dynamic, we utilized the raw waveform—preserving its original physical units—to quantify the true flow magnitude. Specifically, the maximum absolute CSF velocity across the entire cardiac cycle was extracted and reported as PSV (cm/s), representing the peak CSF velocity magnitude used in the present analysis.
- (2)
- Morphological Input for AI: To encourage the deep learning model to focus on morphology-related variations—such as systolic sharpness, decay rate, and diastolic rebounds—it was necessary to isolate intrinsic waveform shape patterns from the individual flow magnitude. To achieve this, the entire 32-point raw waveform underwent Z-score normalization prior to model input. The normalized value at each time point was calculated as follows:
This design, combining top 5% peak-velocity extraction with waveform-wise Z-score normalization, was intended to reduce the influence of minor threshold-dependent boundary variations on downstream morphology learning. By emphasizing high-magnitude luminal velocity signals and reducing absolute amplitude dominance, this preprocessing strategy provided a more consistent waveform input for the 1D-CNN.
2.7.3. 1D-CNN Architecture
A custom 1D Convolutional Neural Network (1D-CNN) [27] was designed to learn morphology-related representations from normalized 32-point CSF velocity waveforms. The network architecture consisted of two sequential convolutional blocks followed by a feature synthesis head (Figure 4):
Figure 4.
Schematic of the 1D-CNN waveform feature extraction network. The model transforms normalized 32-point CSF velocity waveforms into compact latent representations. Hierarchical convolutional layers detect local temporal patterns, and global average pooling summarizes the feature maps before generating 10 latent features.
- (1)
- Morphological Detection Blocks: The network comprised two convolutional blocks. The first block utilized 16 filters (kernel size: 3) and the second used 32 filters (kernel size: 3). Crucially, each convolutional layer was immediately followed by a Batch Normalization layer to stabilize gradient propagation and a ReLU activation function.
- (2)
- Feature Condensation: Max-pooling layers (stride 2) were placed after each block to downsample the feature maps, preserving the most salient activations while reducing dimensionality.
- (3)
- Latent Feature Synthesis: A Global Average Pooling (GAP) layer was then used to aggregate temporal feature maps into a compact representation. The resulting vector was passed to a fully connected layer with 10 neurons, generating 10 latent waveform features, designated AI_Feat_1 to AI_Feat_10. A final fully connected layer and softmax layer were used for binary classification between Normal controls and Pre-treatment SIH scans.
The 10-neuron latent feature layer was used only for exploratory representation analysis after the primary classifier validation. These latent features were not interpreted as independently validated diagnostic biomarkers.
2.7.4. Repeated-Seed Participant-Level Grouped LOOCV Classifier Validation
The primary diagnostic validation of the end-to-end 1D-CNN classifier was performed under a binary Normal-versus-Pre-treatment SIH setting. Post-treatment Recovery scans were excluded from classifier training and testing and were reserved for subsequent exploratory projection analysis.
To minimize subject-level leakage, a participant-level grouped leave-one-out cross-validation (LOOCV) strategy was used. In each fold, all data belonging to one participant were held out as the test set, while the remaining participants were used for training. The 32 cardiac phases of each waveform were treated as a single sequence and were never split into independent samples.
Because CNN training can be sensitive to random initialization, mini-batch ordering, and augmentation sampling in small datasets, the grouped LOOCV experiment was repeated across 30 random seeds. For each seed and each held-out participant, the out-of-sample softmax probability for the SIH class was recorded. The final ensemble SIH probability for each participant was calculated by averaging the out-of-sample probabilities across all 30 seeds. This repeated-seed ensemble probability was used as the primary classifier-level performance estimate. No single best-performing seed was selected for reporting.
Data augmentation was applied only within the training fold. Augmentation included random circular temporal shifting within ±2 cardiac phases and additive zero-mean Gaussian noise scaled to 5% of the normalized waveform standard deviation. The held-out participant remained completely unseen and unaugmented during training. The 1D-CNN was trained using the Adam optimizer, a mini-batch size of 64, an initial learning rate of 0.001, L2 regularization of 0.01, and 50 epochs for each LOOCV fold.
2.7.5. Final Baseline-Trained Latent Feature Extraction and Recovery Projection
After completing the repeated-seed grouped LOOCV classifier validation, a final baseline-trained 1D-CNN was trained using the complete baseline diagnostic cohort, including Normal controls and Pre-treatment SIH scans only. This final model was not used to estimate independent out-of-sample classifier performance. Instead, it was used as a fixed representation-learning model for exploratory latent feature extraction and recovery projection.
The numerical activations from the 10-neuron latent feature layer were extracted as AI_Feat_1 to AI_Feat_10 for Normal, Pre-treatment SIH, and Post-treatment Recovery scans. Recovery scans were passed through the fixed final baseline-trained model but were not used to train the binary classifier. The final baseline-trained model showed stable training convergence, as demonstrated by decreasing training loss and increasing training accuracy over 80 epochs in Supplementary Figure S4. This model was subsequently used for exploratory latent feature extraction, PCA projection, and recovery projection.
Principal component analysis (PCA) was performed using only the baseline diagnostic cohort after Z-score standardization of AI_Feat_1 to AI_Feat_10. Post-treatment Recovery scans were then projected into the same PCA space without influencing the PCA axes. PCA loadings were calculated to describe the contribution of each latent feature to PC1 and PC2, and recovery scans were visualized relative to the morphology space defined by Normal controls and Pre-treatment SIH scans.
2.8. Statistical Analysis
All statistical analyses and data processing were performed using MATLAB R2025a. Continuous variables are presented as Mean ± Standard Deviation (SD), and categorical variables are expressed as counts. A two-sided -value of less than 0.05 was considered statistically significant.
2.8.1. Clinical Demographics and Segmentation Performance
For demographic comparisons, differences in age were evaluated using Student’s -test, while sex distribution differences were assessed using Fisher’s exact test.
To validate the segmentation performance, the improvement of the proposed cascade model over the full-image baseline was evaluated using the non-parametric Wilcoxon Signed-Rank Test for paired comparisons of the Dice Similarity Coefficient (DSC) and 95% Hausdorff Distance (HD95).
2.8.2. Hemodynamic Parameter Analysis
Comparisons of hemodynamic parameters (e.g., flow rates, velocities, stroke volume) between Normal controls, Pre-treatment SIH, and Post-treatment Recovery groups were conducted using the Mann–Whitney U test for independent samples. To quantify the diagnostic performance of these parameters in distinguishing SIH patients from controls, Receiver Operating Characteristic (ROC) curve analysis was performed, and the Area Under the Curve (AUC) was calculated. Additionally, radar charts were utilized to visualize the comprehensive diagnostic efficacy across different methods (Manual, Cascade-only, and Cascade + PUBS).
2.8.3. Deep Learning Feature Analysis and Diagnostic Validation
For waveform morphology analysis, the primary diagnostic validation was performed using the repeated-seed participant-level grouped LOOCV predictions of the end-to-end 1D-CNN classifier. In each LOOCV fold, the SIH-class softmax probability of the held-out participant was recorded as a strictly out-of-sample prediction. To account for stochastic variability in CNN training, this grouped LOOCV procedure was repeated across 30 random seeds. For each participant, the ensemble SIH probability was calculated by averaging the out-of-sample probabilities across all repeated-seed runs. The final ROC curve and AUC of the end-to-end 1D-CNN classifier were generated using these ensemble probabilities. Sensitivity, specificity, accuracy, and balanced accuracy were calculated at the optimal threshold determined by Youden’s Index.
To quantify uncertainty in the primary classifier-level AUC, bootstrap resampling was performed to estimate the 95% confidence interval. A permutation test was also conducted by randomly permuting the diagnostic labels and recalculating the ensemble AUC to evaluate whether the observed classifier performance exceeded chance-level discrimination. No single best-performing seed was selected for reporting; the repeated-seed ensemble result was used as the primary classifier-level validation.
After the primary LOOCV, exploratory latent-space analyses were performed using the final baseline-trained 1D-CNN feature extractor. The 10 AI-derived latent features, AI_Feat_1 to AI_Feat_10, were extracted from the final 10-neuron feature layer for Normal controls, Pre-treatment SIH scans, and Post-treatment Recovery scans. Group-wise distributions of each latent feature were summarized as mean ± SD and visualized using box-and-swarm plots. Pairwise group comparisons among Normal, SIH, and Recovery groups were performed using the Mann–Whitney U test. These feature-level analyses were interpreted as exploratory latent-space analyses rather than independent diagnostic validation because the features were extracted from a final model trained on the complete baseline diagnostic cohort.
Principal component analysis was performed on AI_Feat_1 to AI_Feat_10 extracted from the final baseline-trained 1D-CNN feature extractor. PCA fitting was performed using only the baseline diagnostic cohort after Z-score standardization. Post-treatment Recovery scans were then projected into this baseline-defined PCA space without influencing the PCA axes. This design allowed visualization of Recovery scans relative to the baseline-defined waveform morphology space. PCA loadings were calculated to describe the contribution of each latent feature to PC1 and PC2.
In addition to the primary repeated-seed grouped LOOCV, exploratory apparent ROC analyses were performed for PSV, final baseline-trained latent features, and the final baseline-trained 1D-CNN softmax probability. PSV was included as a conventional scalar velocity reference. The latent-feature model was based on AI_Feat_1 to AI_Feat_10, and the final 1D-CNN probability represented the SIH-class softmax output from the same final baseline-trained model. Because the latent-feature and final-model probability analyses were derived from a model trained on the complete baseline diagnostic cohort, these ROC analyses were interpreted as apparent separability rather than independent out-of-sample validation.
2.8.4. Inter-Rater Reliability Analysis
To evaluate the reproducibility and objectivity of the manual reference standard, an inter-rater reliability analysis was performed on the entire dataset (N = 59). A second independent expert reader, blinded to the clinical status and group allocations of the participants, manually segmented the cerebral aqueduct. The spatial overlap and boundary alignment between the primary and secondary readers were quantitatively assessed using the Dice Similarity Coefficient (DSC), Intersection over Union (IoU), and the 95th percentile Hausdorff Distance (HD95).
3. Results
3.1. Demographic Characteristics of the Study Population
A total of 39 participants were included in the study. The cohort consisted of 11 Normal controls (Mean Age: 32.9 ± 5.3 years; 6 males/5 females) and 28 patients with spontaneous intracranial hypotension (SIH) (Mean Age: 40.1 ± 10.4 years; 7 males/21 females). Among the SIH group, 20 patients who exhibited clinical improvement following Epidural Blood Patch (EBP) treatment were included in the Post-treatment Recovery group subset.
Statistical analysis revealed a significant difference in age between the Normal controls and the Pre-treatment SIH patients (p = 0.036), with the SIH group being slightly older. However, there was no statistically significant difference in sex distribution (p = 0.13) between the two groups. Detailed demographic characteristics are summarized in Table 1.
Table 1.
Demographic characteristics of the study population.
3.2. Segmentation Performance and Ablation Study
To validate the efficacy of the proposed cascade architecture (YOLO localization + MultiResUNet segmentation), an ablation study was conducted by comparing it against a baseline MultiResUNet model trained on full-field images. Performance was evaluated using the Dice Similarity Coefficient (DSC), where a value closer to 1 indicates superior volumetric overlap, and the 95% Hausdorff Distance (HD95), where a lower value signifies higher boundary delineation accuracy. Table 2 summarizes the quantitative metrics across the three clinical cohorts. The proposed cascade framework consistently outperformed the full-image baseline in all groups.
Table 2.
Segmentation performance.
Qualitative visual comparisons between the baseline full-image model and the proposed cascade architecture are presented in Figure 5. In these visualizations, the manual ground truth is overlaid in solid red, while the model’s predicted boundaries are outlined in yellow. Visual inspection revealed that the cascade model (bottom rows) consistently achieved superior segmentation performance, with predicted contours closely aligning with the ground truth across varying anatomical structures.
Figure 5.
Visual assessment of segmentation performance. Top rows: Full-Image baseline; Bottom rows: Proposed cascade model. Red: Ground Truth; Yellow: Predicted Segmentation. The proposed method showed superior robustness, successfully localizing the target even in cases where the baseline model generated false positives (e.g., top-center panel).
In contrast, the full-image model (top rows) exhibited significant instability in localizing small targets. A representative failure is shown in the center image of the top row, where the baseline model completely missed the true anatomical target and incorrectly predicted a false-positive region far from the ground truth.
Furthermore, the evaluation of inter-rater reliability between the two independent expert readers demonstrated near-perfect agreement across all clinical cohorts (Table 3). The average DSC exceeded 0.98 and the average IoU exceeded 0.97 across all groups. The mean HD95 values were all below 0.1 mm, indicating excellent boundary agreement between the two independent expert readers. These results support the high reproducibility of the annotation protocol and reduce the likelihood of major observer-dependent bias. Therefore, the segmentations delineated by the primary reader were considered suitable reference masks for downstream hemodynamic parameter extraction.
Table 3.
Inter-rater reliability metrics between two independent expert annotators across clinical cohorts.
3.3. Impact of Physiological Signal Refinement (PUBS)
To evaluate the contribution of the Pulsatility-Based Segmentation (PUBS) algorithm in refining hemodynamic assessment, we compared the flow metrics derived from the initial anatomical segmentation (Cascade-only) against those refined by PUBS (Cascade + PUBS). The comparative results are visualized in Figure 6 and Figure 7, and detailed quantitative data are presented in Table 4, Table 5 and Table 6.
Figure 6.
Radar chart comparison of diagnostic efficacy. The plot displays the AUC values (Normal vs. SIH) for hemodynamic parameters calculated by the Manual method (gray), the Cascade-only method (orange), and the proposed PUBS method (blue). The PUBS-refined framework showed improved overall diagnostic separability across most flow-derived parameters, particularly downward mean flow and downward peak flow. However, the magnitude of improvement varied across individual parameters.
Figure 7.
Comparison of measurement relative error. The chart displays the absolute percentage deviation of the Cascade-only method (orange) and the PUBS-refined method (blue) from the expert manual reference within the SIH cohort. The PUBS-refined framework showed a lower overall average relative error, indicating improved agreement with the manual reference standard. This improvement suggests that physiological signal refinement can reduce boundary-related deviations associated with anatomical-only segmentation.
Table 4.
Quantitative hemodynamic parameters derived from expert manual segmentation.
Table 5.
Quantitative hemodynamic parameters derived from baseline automated anatomical segmentation.
Table 6.
Quantitative hemodynamic parameters derived from proposed PUBS-refined segmentation.
3.3.1. Diagnostic Performance Enhancement
As illustrated in the radar chart (Figure 6), the integration of PUBS improved diagnostic separability across several flow-derived parameters. The PUBS-refined profile (blue line) generally extended beyond the Cascade-only profile (orange) across several hemodynamic parameters. Most notably, for Downward Mean Flow, the AUC increased from 0.747 using the Cascade-only method to 0.792 using the Cascade + PUBS method. This value was also numerically higher than the AUC obtained from manual reference-derived measurements for the same parameter. This suggests that signal refinement was particularly effective in capturing subtle diastolic flow variations that may be obscured by boundary-related segmentation variability. As a result, the method improved diagnostic separability by reducing boundary-related variability and preserving functionally coherent flow information relative to anatomical-only segmentation.
3.3.2. Quantitative Accuracy and Mitigation of Partial Volume Effects
The PUBS algorithm reduced measurement error relative to the manual ground truth across a wide range of hemodynamic indices. This improvement was especially clear in velocity-derived metrics, where precise boundary definition was critical. The relative error analysis (Figure 7) further quantified this precision using the absolute percentage deviation from the manual ground truth within the SIH cohort.
Integrating physiological signal characteristics improved the accuracy of hemodynamic quantification, especially for boundary-sensitive metrics. The greatest improvement was seen in peak velocity measurements. The baseline anatomical segmentation showed a systematic deviation from the manual ground truth. This was likely due to peripheral non-flow voxels caused by partial volume effects. The PUBS algorithm used the pulsatile CSF signal to remove these static or inconsistent voxels at the vessel wall. As a result, the refined velocity was closer to the manual reference. The overall average relative error also decreased from 7.4% to 5.6%.
In summary, the initial anatomical segmentation provided a solid foundation. The addition of PUBS further improved quantitative agreement and supported better diagnostic separability in CSF hemodynamic assessment. This improvement was especially clear in the correction of velocity estimation under complex flow conditions.
3.3.3. Sensitivity Analysis of PUBS Thresholding
To quantitatively evaluate the sensitivity of the PUBS thresholding step, we analyzed the relationship between the cross-correlation threshold values and the resulting aqueductal ROI areas across different clinical cohorts (see Figure 8). As illustrated, increasing the threshold naturally led to a progressive reduction in ROI area due to the mathematical exclusion of peripheral pixels. Crucially, a distinct “plateau region” was consistently observed across all cohorts. Within this optimal functional zone, the derived ROI area and subsequent flow measurements remained relatively stable against minor threshold perturbations (e.g., within a range). This visual evidence confirms the efficacy of the physiological refinement strategy detailed in Section 2.4, demonstrating that minimizing the flow CV successfully anchors the optimal threshold () in a highly stable region. Furthermore, this spatial stability may contribute to downstream waveform-extraction robustness. Because the core luminal ROI remains stable within the plateau, and because our feature extraction module strictly samples the top 5% peak velocity combined with Z-score normalization (as described in Section 2.7.2), the dynamic signal is expected to be less sensitive to minor boundary variations. Consequently, this sensitivity analysis supports the robustness of the PUBS-derived functional ROI against minor threshold fluctuations. Together with top 5% peak-velocity sampling and Z-score normalization, this design is expected to reduce the influence of boundary-level variations on downstream waveform feature extraction.
Figure 8.
Sensitivity analysis of the PUBS threshold on aqueductal ROI area across representative clinical cohorts. The plots illustrate the relationship between the cross-correlation threshold value (x-axis) and the resulting ROI area in mm2 (y-axis). Panels (A–C) represent examples from the Normal controls, Pre-treatment SIH, and Post-treatment Recovery groups, respectively. A progressive reduction in ROI area is observed as the threshold increases, reflecting the exclusion of peripheral pixels that are more susceptible to partial-volume effects. The green shaded regions indicate the case-specific plateau regions automatically identified by the algorithm, within which the ROI area remains relatively stable against minor threshold perturbations. The red dashed lines indicate the optimal threshold ) selected at the point of minimum calculated flow coefficient of variation (), supporting stable functional ROI definition and hemodynamic quantification.
3.4. Deep Learning-Based Morphological Analysis
3.4.1. Primary Validation of the End-to-End 1D-CNN Classifier
To evaluate whether waveform morphology alone could provide diagnostic discrimination between Normal controls and Pre-treatment SIH scans, the end-to-end 1D-CNN classifier was first assessed using repeated-seed participant-level grouped LOOCV. The ensemble prediction was generated by averaging the strictly out-of-sample SIH-class probabilities across 30 repeated-seed LOOCV runs for each participant.
The repeated-seed ensemble ROC curve demonstrated modest out-of-sample discrimination, with an AUC of 0.646. The bootstrap 95% confidence interval was 0.455–0.826, and the permutation test showed a trend toward above-chance discrimination but did not reach conventional statistical significance (p = 0.072). At the optimal threshold determined by Youden’s Index, the classifier achieved a sensitivity of 71.4%, specificity of 72.7%, accuracy of 71.8%, and balanced accuracy of 72.1% (Table 7; Figure 9).
Table 7.
Primary validation of the end-to-end 1D-CNN classifier using repeated-seed grouped LOOCV.
Figure 9.
Primary validation ROC curve of the end-to-end 1D-CNN classifier. The ROC curve was generated from ensemble out-of-sample SIH probabilities averaged across 30 repeated-seed grouped LOOCV runs. The model showed modest discrimination between Normal controls and Pre-treatment SIH scans.
These findings indicate that the end-to-end 1D-CNN captured some SIH-related waveform information, but its classifier-level performance remained modest under strict out-of-sample validation. Therefore, the end-to-end 1D-CNN classifier was not interpreted as a validated stand-alone diagnostic model in the current cohort.
3.4.2. Exploratory Latent-Space Visualization and Recovery Projection
After the primary LOOCV, a final baseline-trained 1D-CNN feature extractor was used to explore whether learned waveform representations showed group-level morphology patterns. This final model was trained using the complete baseline diagnostic cohort and was used only for exploratory latent feature extraction, PCA visualization, and Recovery projection. The learning curves of this final model showed stable convergence over 80 epochs (Supplementary Figure S4).
PCA was performed on AI_Feat_1 to AI_Feat_10 using only the baseline diagnostic cohort. The first two principal components explained most of the latent-feature variance, with PC1 accounting for 71.4% and PC2 accounting for 23.2% of the total variance. Together, PC1 and PC2 explained 94.6% of the total variance. In the PCA space, Normal controls and Pre-treatment SIH scans showed apparent separation primarily along PC1, whereas Recovery scans occupied an intermediate distribution between the two baseline groups (Figure 10). PCA loadings showed that PC1 was mainly driven by positive contributions from AI_Feat_2, AI_Feat_6, AI_Feat_7, AI_Feat_8, and AI_Feat_9, and negative contributions from AI_Feat_3 and AI_Feat_4 (Supplementary Table S1).
Figure 10.
PCA projection of final baseline-trained 1D-CNN latent features. PCA was fitted using AI_Feat_1–AI_Feat_10 from the baseline diagnostic cohort, and Recovery scans were projected into the same PCA space. Normal controls and Pre-treatment SIH scans showed apparent separation mainly along PC1, while Recovery scans occupied an intermediate distribution.
This projection pattern suggests that the final baseline-trained latent space captured apparent waveform morphology differences between Normal and Pre-treatment SIH scans, and that Recovery scans tended to shift toward an intermediate or partially normalized morphology distribution. However, because this latent space was derived from a final model trained on the full baseline diagnostic cohort, these findings were interpreted as exploratory representation analysis rather than independent diagnostic validation.
3.4.3. Distribution of AI-Derived Latent Features
The distributions of AI_Feat_1 to AI_Feat_10 were further examined across Normal controls, Pre-treatment SIH, and Post-treatment Recovery groups using box-and-swarm plots (Figure 11). Several latent features showed marked group-wise differences. AI_Feat_2, AI_Feat_6, AI_Feat_7, AI_Feat_8, and AI_Feat_9 showed low values in Normal controls, increased values in Pre-treatment SIH scans, and intermediate values in Recovery scans. Pairwise comparisons showed significant differences between Normal and SIH for these features, as well as significant differences between SIH and Recovery, suggesting partial post-treatment shifts in the learned waveform representations.
Figure 11.
Distribution of exploratory 1D-CNN-derived latent features across clinical groups. Box-and-swarm plots show AI_Feat_1 to AI_Feat_10 extracted from the final baseline-trained 1D-CNN feature layer. Several latent features showed marked SIH-related shifts, with recovery scans generally showing intermediate distributions between Normal controls and Pre-treatment SIH scans. Pairwise p-values were calculated using the Mann–Whitney U test.
In contrast, AI_Feat_3 and AI_Feat_4 showed the opposite directional pattern, with higher values in Normal controls, lower values in Pre-treatment SIH, and intermediate values in Recovery. AI_Feat_1 showed minimal variation across groups and did not demonstrate meaningful group separation. AI_Feat_5 and AI_Feat_10 showed relatively small absolute differences compared with the dominant latent features. Detailed group-wise values and pairwise p-values are summarized in Supplementary Table S2.
Overall, these feature-level patterns suggest that the final baseline-trained 1D-CNN captured exploratory waveform-shape representations that were associated with SIH status and recovery-related shifts. These findings were considered exploratory because the latent features were extracted from a final model trained on the complete baseline diagnostic cohort.
3.4.4. Exploratory Apparent ROC Analysis
As a secondary exploratory analysis, the apparent Normal-versus-SIH separability of conventional PSV, final baseline-trained latent features, and the final baseline-trained 1D-CNN probability was evaluated. PSV alone achieved an AUC of 0.695. In comparison, the final baseline-trained latent-feature model achieved an apparent AUC of 0.994, and the final baseline-trained 1D-CNN softmax probability achieved an apparent AUC of 0.997 (Supplementary Table S3; Figure 12).
Figure 12.
Exploratory apparent ROC analysis of PSV and final baseline-trained 1D-CNN-derived features. ROC curves compare PSV, final baseline-trained latent features, and final baseline-trained 1D-CNN probability for Normal-versus-SIH separability. These analyses represent apparent separability from the final baseline-trained model and were not interpreted as independent validation.
These exploratory ROC results indicate that the final baseline-trained latent space showed strong apparent separation between Normal and Pre-treatment SIH scans. However, because the latent features and final-model probabilities were derived from a model trained on the complete baseline diagnostic cohort, these AUC values were not interpreted as independent out-of-sample diagnostic performance. The primary classifier-level validation remained the repeated-seed grouped LOOCV result described above.
4. Discussion
4.1. Principal Findings and Overall Contributions
This study presents a fully automated, end-to-end framework for cine PC-MRI analysis of cerebral aqueduct CSF hemodynamics in spontaneous intracranial hypotension (SIH). The proposed pipeline integrates (1) a cascade localization strategy using YOLOv4 for robust midbrain/aqueduct targeting, (2) aqueduct segmentation using a multi-scale CNN (MultiResUNet), (3) physiology-informed refinement via pulsatility-based segmentation (PUBS), and (4) morphology-driven waveform feature learning using a 1D-CNN trained on 32-point cardiac-cycle velocity waveforms, with repeated-seed participant-level grouped LOOCV used for primary classifier validation. This workflow addresses an important clinical need for objective and reproducible tools to support SIH diagnosis and treatment monitoring, beyond conventional qualitative MRI signs and subjective symptom reporting [4,5]. Moreover, it operationalizes the concept that SIH is not merely CSF volume depletion but also a disorder of altered craniospinal biomechanics and compliance that can manifest in dynamic CSF flow signatures [6,7,8,9].
Three contributions emerge from the Results. First, the cascade localization–segmentation design substantially improves segmentation robustness compared with a full-image baseline, particularly under extreme class imbalance and low contrast typical of the aqueduct in SIH. Across cohorts, the cascade design improves both accuracy and robustness, yielding higher DSC and markedly lower HD95. The robustness gain is most evident in Pre-treatment SIH, where the full-image model shows extreme boundary outliers (HD95 of 15.37 ± 44.98 px), while the cascade model remains stable (HD95 of 1.66 ± 0.74 px) (Table 2, Figure 5). Second, PUBS refinement improves the fidelity of flow quantification by suppressing boundary noise and partial volume–driven errors. In the SIH cohort, the mean relative error decreases from 7.4% to 5.6%, and the radar plot shows broader AUC profiles across several hemodynamic parameters. Notably, the AUC for downward mean flow improves from 0.747 to 0.792, numerically higher than the manual-reference AUC of 0.750 (Figure 6 and Figure 7). Third, the waveform morphology analysis provides exploratory evidence that SIH-related information may be encoded in the temporal shape of aqueductal CSF velocity waveforms. Under repeated-seed participant-level grouped LOOCV, the end-to-end 1D-CNN classifier shows modest out-of-sample discrimination rather than robust stand-alone diagnostic performance. However, exploratory analysis of the final baseline-trained latent feature space demonstrates marked, apparent Normal-versus-SIH separability and an intermediate recovery distribution in PCA space. This discrepancy suggests that waveform morphology may contain physiologically meaningful SIH-related information, but larger independent cohorts are required before 1D-CNN-derived features can be considered validated diagnostic or monitoring biomarkers.
4.2. Challenges of Aqueduct Segmentation in SIH Cine PC-MRI
Aqueduct segmentation in PC-MRI is inherently challenging because the aqueduct occupies only a minute fraction of the image and is susceptible to partial volume effects and ROI-definition variability [12,13,14,17]. These difficulties are further amplified in SIH, where aqueductal CSF velocities and flow measures are reduced [13]. As a result, unlike hyperdynamic conditions (e.g., hydrocephalus or NPH/iNPH), SIH often provides limited flow-related contrast. These characteristics help explain the failure patterns observed in the full-image baseline: the model must simultaneously identify the target location and delineate its boundary under extreme class imbalance, increasing the risk of off-target false positives that inflate boundary-based errors (e.g., HD95) and compromise downstream quantification (Table 2, Figure 5).
Previous investigations into aqueductal CSF dynamics, such as those by Capel et al. [9] and Spijkerman et al. [16], have typically relied on manual or semi-automated ROI definition prior to detailed segmentation to ensure measurement reliability. This dependence on manual localization underscores a critical insight: accurately delineating the aqueduct from the complex midbrain background requires constraining the search space to exclude physiological artifacts. Our cascade design automates this essential ‘spatial attention’ mechanism by implementing YOLOv4 [20,21] as a preliminary localizer. By explicitly constraining the ROI, this detection stage effectively filters out background noise and decouples localization from segmentation. Consequently, this allowed the subsequent MultiResUNet [22] to focus on delineating the micro-tubular aqueduct within a constrained anatomical region, thereby approximating the stabilizing effect of manual ROI placement. As demonstrated in Table 2, this methodological advantage translates into statistically significant improvements in segmentation performance. The proposed cascade model significantly outperforms the full-image model across all metrics ( < 0.05).
4.3. The Role of PUBS: From Anatomical Masks to Functional ROIs
PC-MRI quantification of aqueductal CSF flow is highly sensitive to ROI definition. Peak-related metrics and local extrema are particularly vulnerable to boundary placement and partial volume effects, which can introduce systematic measurement bias [15,17,31]. Consistent with this, our ablation analysis indicates that an anatomically plausible mask alone (cascade-only segmentation) does not guarantee reliable velocity estimation, whereas PUBS refinement reduces boundary-related bias and improves agreement with the manual reference, reducing the mean relative error in the SIH cohort from 7.4% to 5.6% (≈24% relative reduction). This finding also echoes prior semiautomatic work showing that anatomically reasonable ROIs may still yield physiologically unreliable aqueduct flow measurements when boundary uncertainty is present [17].
PUBS addresses this limitation by exploiting temporal consistency across the cardiac cycle to identify functional flow pixels, rather than relying solely on anatomical intensity information [18]. In our pipeline, PUBS serves as a physiology-informed post-processing layer after deep segmentation, suppressing boundary contamination and improving measurement fidelity without manual threshold tuning. The benefit is evident in both reduced quantification error (Figure 7) and improved diagnostic separability across hemodynamic parameters, reflected by a broader radar-chart profile after PUBS refinement across several parameters (Figure 6). Together, these results support PUBS as a complementary component that improves both quantitative agreement and diagnostic separability.
Furthermore, the automated identification of the PUBS plateau may reduce the influence of boundary-level segmentation variation on downstream waveform extraction. Combined with top 5% peak-velocity sampling and Z-score normalization, this design was intended to improve the robustness of morphology-based feature extraction by emphasizing temporally coherent luminal flow signals rather than boundary-dependent peripheral pixels.
4.4. Background Correction and Consistency of Hemodynamic Parameters with Prior PC-MRI Studies
Accurate quantification of aqueductal CSF hemodynamics in PC-MRI depends not only on robust ROI delineation but also on appropriate correction of background phase offsets. Phase errors caused by system imperfections and eddy currents can introduce systematic bias in velocity and flow estimates, particularly for small structures such as the cerebral aqueduct; therefore, background phase correction is widely regarded as an essential step for reliable quantification [29,30]. In this work, we apply a fully automated local background correction using static tissue adjacent to the aqueduct, as described in Section 2.5 and illustrated in Figure 3. The midbrain reference region is divided into an 8 × 8 grid, and cells overlapping a dilated aqueduct exclusion zone (disk radius = 6 pixels) are discarded. We then select the eight cells with the lowest temporal SD (t-SD) across 32 cardiac phases as the static reference and subtract their per-frame mean phase velocity from the aqueduct waveform to correct spatially varying phase offsets.
With background correction in place, the hemodynamic parameters derived from our automated pipeline show patterns consistent with prior aqueduct PC-MRI studies in SIH. Notably, Tung et al. reported reduced aqueductal peak velocity and flow-related measures in SIH compared with controls, with improvement after recovery [13], and similar SIH-related alterations have been described in other PC-MRI reports [6]. In agreement, we observe significant group differences between SIH and controls across multiple velocity- and flow-based parameters, including Downward peak velocity, Upward/Downward CSF total flow, Absolute stroke volume, and peak/mean flow measures (Table 6), with most parameters trending toward normalization in the recovery cohort. This concordance supports the validity of our parameter estimation and indicates that the proposed workflow preserves clinically meaningful physiological information while eliminating manual processing steps. Beyond consistency with prior SIH findings, our results directly address reproducibility concerns arising from software-dependent differences in aqueduct flow quantification [32], supporting more standardized and comparable measurements across analyses.
By integrating local background correction with physiology-informed ROI refinement and fully automated hemodynamic parameter estimation, our workflow improves measurement stability and supports reproducible longitudinal assessment.
4.5. Beyond Scalar Metrics: Exploratory Waveform Morphology Analysis Using 1D-CNN
Most aqueductal PC-MRI studies summarize CSF dynamics using scalar parameters, such as peak velocity, mean flow, or stroke volume [12,13,14,15]. Although these metrics are clinically interpretable and physiologically meaningful, they compress the cardiac-cycle waveform into a limited set of values and may overlook temporal morphology information. In this study, we therefore explore whether the shape of the 32-point aqueductal CSF velocity waveform contains additional SIH-related information beyond conventional scalar measurements.
Under the strict repeated-seed participant-level grouped LOOCV framework, the end-to-end 1D-CNN classifier demonstrated only modest out-of-sample diagnostic performance. The ensemble AUC was 0.646, with a bootstrap 95% confidence interval of 0.455–0.826 and a permutation-test p-value of 0.072 (Figure 9, Table 7). Although sensitivity and specificity were balanced at approximately 70%, the wide confidence interval and non-significant permutation test indicate that the classifier-level generalizability of the current 1D-CNN remains limited. Therefore, the end-to-end 1D-CNN should not be interpreted as a validated stand-alone diagnostic model at this stage.
Nevertheless, the final baseline-trained latent-space analysis suggests that waveform morphology may still encode SIH-related physiological information. PCA of the final baseline-trained latent features shows that the first two principal components explain most of the latent-feature variance, with apparent separation between Normal controls and Pre-treatment SIH scans mainly along PC1. Post-treatment Recovery scans tend to occupy an intermediate distribution between the two baseline groups (Figure 10). This pattern suggests that Post-treatment Recovery scans may not simply revert to the Normal cluster but instead may represent a transitional waveform morphology state, potentially reflecting partial restoration of intracranial CSF dynamics after treatment.
The distribution of individual AI-derived latent features further supports this interpretation. Several features, including AI_Feat_2, AI_Feat_6, AI_Feat_7, AI_Feat_8, and AI_Feat_9, show low values in Normal controls, higher values in Pre-treatment SIH scans, and intermediate values in Recovery scans. Conversely, AI_Feat_3 and AI_Feat_4 show the opposite directional pattern (Figure 11). These bidirectional feature patterns suggest that the 1D-CNN does not simply capture a single amplitude-like descriptor but instead learns a multi-dimensional representation of waveform morphology. However, because these features are extracted from a final model trained on the complete baseline diagnostic cohort, they should be interpreted as exploratory latent-space findings rather than independently validated diagnostic biomarkers.
The exploratory ROC analysis also highlights this distinction. PSV alone shows moderate apparent separability, whereas the final baseline-trained latent features and final 1D-CNN probability show markedly higher apparent AUC values (Figure 12). However, these high AUCs reflect apparent separation within the final baseline-trained representation space and should not be compared directly with the repeated-seed grouped LOOCV result as independent validation. Instead, the discrepancy between modest out-of-sample classifier performance and strong final latent-space separability suggests that SIH-related waveform morphology may be present but remains difficult to generalize reliably in a small and imbalanced cohort.
1D-CNNs are well suited for hierarchical representation learning in biomedical time-series analysis and have demonstrated strong performance in ECG waveform classification, where subtle shape differences are clinically meaningful [25,26,27]. Taken together, these findings support a cautious interpretation: Aqueductal CSF waveform morphology may contain physiologically relevant information beyond scalar flow metrics, but the current 1D-CNN-derived features should be considered hypothesis-generating biomarkers [33]. Larger independent cohorts are required to determine whether these latent waveform patterns are reproducible, physiologically interpretable, and clinically useful for SIH diagnosis or post-treatment monitoring.
4.6. Limitations and Future Work
Several limitations merit discussion. First, assembling a large SIH dataset is practically constrained by both the disease’s relative rarity and the high natural attrition rate in clinical follow-up. In routine clinical practice, successfully treated patients (e.g., those who experience significant symptom relief following an Epidural Blood Patch) often do not return for follow-up MRI scans. As a result, this was a single-center retrospective study with a modest sample size (controls: 11; SIH: 28; recovery: 20) and a fixed acquisition protocol. To reduce the risk of seed-selection bias in the small-sample 1D-CNN analysis, we used repeated-seed participant-level grouped LOOCV and reported the ensemble out-of-sample performance rather than selecting a best-performing seed. However, the resulting classifier performance remains modest, emphasizing the need for larger validation cohorts. In contrast to this small-sample limitation of the 1D-CNN analysis, the risk of clinical-cohort data leakage in the upstream anatomical components was minimized by training the Tiny YOLOv4 and MultiResUNet models on completely separate, independent 100-subject datasets with no overlap with the clinical analysis cohort.
Second, there was a statistically significant age difference between SIH patients and controls (p = 0.036). While previous studies in healthy cohorts [14] suggest that baseline aqueductal CSF flow is relatively stable across ages, aging is known to alter tissue elasticity and compliance. Therefore, we cannot fully exclude age as a potential confounder in the biomechanical differences observed between the SIH and control groups. Although the longitudinal Post-treatment Recovery subset reduces this concern for treatment-related comparisons because recovery scans were obtained from the same SIH patients, the observed shifts in exploratory latent features should still be interpreted cautiously. Larger age-matched validation studies are needed to confirm the relationship between these waveform morphology changes, SIH pathophysiology, and treatment response. To address these limitations, future work should proceed in a staged manner: first, by expanding the sample size within our institution to reinforce statistical power and evaluate the stability of the candidate waveform morphology features; and subsequently, by conducting multi-center data collection to rigorously assess the model’s generalizability across different scanners and populations.
Third, all imaging was acquired on a single platform with a single protocol (1.5T, 5 mm slice thickness, venc 20 cm/s). Given the extremely small aqueduct size, equipment-dependent noise can significantly alter the extracted waveform morphology. While 1.5T systems typically yield fewer susceptibility artifacts at the skull base compared to 3.0T, future work should rigorously evaluate the model’s generalizability. Specifically, it is necessary to investigate whether the learned waveform features remain robust under different venc settings, across equipment from different manufacturers, and in recent 3.0T MRI systems, as field-strength–dependent differences have been well-documented in other CSF-related contexts [34].
Fourth, manual delineation was primarily established by an experienced neuroradiologist as the reference standard. While manual profiling of tiny structures like the cerebral aqueduct is inherently susceptible to observer subjectivity [15,17,31], our comprehensive inter-rater analysis involving a second independent expert reader across the entire dataset demonstrated near-perfect consistency (average DSC > 0.98 and HD95 < 0.1 mm in all groups). This high agreement reduced the likelihood of major observer-dependent bias and supported the reliability of the reference masks used for downstream analysis.
Finally, the 1D-CNN waveform morphology analysis remains exploratory. Although repeated-seed grouped LOOCV was used to reduce seed-selection bias, the end-to-end 1D-CNN classifier shows only modest out-of-sample discrimination and did not reach conventional statistical significance in permutation testing. In addition, the final baseline-trained latent-feature analyses represent apparent separability rather than independent validation because the feature extractor was trained on the complete baseline diagnostic cohort. Larger independent cohorts are required to confirm the reproducibility and physiological meaning of these waveform morphology features. Comprehensive standardized symptom scores, quantitative imaging indices, and long-term treatment-response data were not systematically available in the present retrospective dataset. Future studies should correlate the exploratory waveform morphology features with clinical and physiological measures, including lumbar puncture opening pressure, quantitative brain sagging indices, HIT-6 headache scores, recurrence rates, and treatment response [2,3,4,5]. Such validation is necessary before these features can be used for prognostic modeling or prediction of epidural blood patching response.
5. Conclusions
This study presents a fully automated end-to-end framework for analyzing aqueductal CSF hemodynamics in spontaneous intracranial hypotension (SIH). By combining cascade localization–segmentation with physiology-informed pulsatility-based refinement (PUBS), the pipeline reduces partial volume effects and enables accurate flow quantification even under low-contrast conditions. Exploratory 1D-CNN-based waveform morphology analysis further suggests that SIH-related information may be encoded in temporal waveform shape beyond conventional scalar flow metrics. However, the modest out-of-sample performance of the end-to-end 1D-CNN classifier indicates that these morphology-derived features should currently be interpreted as exploratory biomarker candidates rather than validated stand-alone diagnostic tools. Larger independent cohorts are required to confirm their reproducibility, physiological meaning, and potential utility for SIH diagnosis, longitudinal monitoring, and treatment-response prediction.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/diagnostics16121939/s1, Figure S1: Training and validation loss curves of the Tiny YOLOv4 midbrain localization model; Figure S2: Precision–recall curve of the Tiny YOLOv4 midbrain localization model on the independent test set; Figure S3: Training and validation curves of the MultiResUNet cascade segmentation model; Figure S4: Learning curves of the final baseline-trained 1D-CNN feature extractor; Table S1: PCA loadings of AI_Feat_1 to AI_Feat_10 for the final baseline-trained latent-feature space; Table S2: Group-wise distributions and pairwise comparisons of AI_Feat_1 to AI_Feat_10 among Normal controls, Pre-treatment SIH, and Post-treatment Recovery scans; Table S3: Exploratory apparent ROC analysis of PSV, final baseline-trained latent-feature model, and final baseline-trained 1D-CNN softmax probability for Normal-versus-SIH separability.
Author Contributions
Conceptualization, D.-C.C. and Y.-J.H.; methodology, D.-C.C. and Y.-J.H.; software, Y.-J.H.; validation, Y.-J.H., W.-H.C. and H.-C.C.; formal analysis, D.-C.C.; investigation, Y.-J.H. and H.-C.C.; resources, W.-H.C. and H.-C.C.; data curation, Y.-J.H., W.-H.C. and H.-C.C.; writing—original draft preparation, D.-C.C. and Y.-J.H.; writing—review and editing, D.-C.C.; visualization, Y.-J.H.; supervision, D.-C.C.; project administration, D.-C.C.; funding acquisition, D.-C.C. All authors have read and agreed to the published version of the manuscript.
Funding
This work was partially supported by the National Science and Technology Council (NSTC), Taiwan, grant number NSTC 114-2314-B-039-054-MY2.
Institutional Review Board Statement
The study was approved by the Institutional Review Board of Taichung Veterans General Hospital (IRB-CE22242B) on 16 June 2022.
Informed Consent Statement
Patient consent was waived by the IRB because this was a retrospective study using only de-identified images.
Data Availability Statement
The data presented in this study are available from the corresponding author upon reasonable request. Data sharing is subject to Institutional Review Board restrictions and privacy regulations.
Acknowledgments
The authors acknowledge the Wong Vung-Hoa Radiology Foundation.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Schievink, W.I. Spontaneous spinal cerebrospinal fluid leaks and intracranial hypotension. JAMA 2006, 295, 2286–2296. [Google Scholar] [CrossRef] [PubMed]
- Chiapparini, L.; Ciceri, E.; Nappini, S.; Castellani, M.R.; Mea, E.; Bussone, G.; Leone, M.; Savoiardo, M. Headache and intracranial hypotension: Neuroradiological findings. Neurol. Sci. 2004, 25, s138–s141. [Google Scholar] [CrossRef] [PubMed]
- Yoon, Y.S.; Khil, E.K.; Jo, S.W.; Lee, S.A.; Cho, S.-J. Standardized spinal MRI protocol: Diagnosing spontaneous intracranial hypotension and correlating with brain MRI. Eur. Spine J. 2025, 34, 5402–5411. [Google Scholar] [CrossRef] [PubMed]
- Callen, A.L.; Friedman, D.I.; Parikh, S.; Rau, J.C.; Schievink, W.I.; Cutsforth-Gregory, J.K.; Amrhein, T.J.; Haight, E.; Cowan, R.P.; Barad, M.J.; et al. Diagnosis and treatment of spontaneous intracranial hypotension. Neurol. Clin. Pract. 2024, 14, e200290. [Google Scholar] [CrossRef] [PubMed]
- Mehta, D.; Cheema, S.; Davagnanam, I.; Matharu, M. Diagnosis and treatment evaluation in patients with spontaneous intracranial hypotension. Front. Neurol. 2023, 14, 1145949. [Google Scholar] [CrossRef] [PubMed]
- Hasiloglu, Z.I.; Albayram, S.; Gorucu, Y.; Selcuk, H.; Cagil, E.; Erdemli, H.E.; Adaletli, I. Assessment of CSF flow dynamics using PC-MRI in spontaneous intracranial hypotension. Headache J. Head Face Pain 2012, 52, 808–819. [Google Scholar] [CrossRef]
- Tsai, Y.; Chen, H.; Tung, H.; Wu, Y.; Chen, H.; Pan, K.; Cheng, D.; Chen, J.; Chen, C.C.; Chai, J.; et al. Noninvasive assessment of intracranial elastance and pressure in spontaneous intracranial hypotension by MRI. J. Magn. Reson. Imaging 2018, 48, 1255–1263. [Google Scholar] [CrossRef] [PubMed]
- Goldberg, J.; Häni, L.; Jesse, C.M.; Zubak, I.; Piechowiak, E.I.; Gralla, J.; Dobrocky, T.; Beck, J.; Raabe, A. Spontaneous intracranial hypotension without CSF Leakage—Concept of a pathological cranial to spinal fluid shift. Front. Neurol. 2021, 12, 760081. [Google Scholar] [CrossRef] [PubMed]
- Capel, C.; Owashi, K.; Metanbou, S.; Peltier, J.; Balédent, O. Impact of shunt placement on CSF dynamics. Biomedicines 2023, 12, 20. [Google Scholar] [CrossRef] [PubMed]
- Huang, Y.-J.; Chai, J.-W.; Chen, W.-H.; Chen, H.-C.; Cheng, D.-C. AI-Augmented quantitative MRI predicts spontaneous intracranial hypotension. Diagnostics 2025, 15, 2339. [Google Scholar] [CrossRef] [PubMed]
- Shojaeianforoud, F.; Lahooti, M. Cerebrospinal fluid flow dynamics in the aqueduct of Sylvius for rigid and deformable brain models. Comput. Biol. Med. 2025, 190, 110047. [Google Scholar] [CrossRef] [PubMed]
- Giner, J.F.; Sanz-Requena, R.; Flórez, N.; Alberich-Bayarri, A.; García-Martí, G.; Ponz, A.; Martí-Bonmatí, L. Quantitative phase-contrast MRI study of cerebrospinal fluid flow: A method for identifying patients with normal-pressure hydrocephalus. Neurología 2014, 29, 68–75. [Google Scholar] [CrossRef]
- Tung, H.; Liao, Y.-C.; Wu, C.-C.; Chang, M.-H.; Chen, C.C.-C.; Chen, P.-L.; Chen, H.-C. Usefulness of phase-contrast magnetic resonance imaging for diagnosis and treatment evaluation in patients with spontaneous intracranial hypotension. Cephalalgia 2014, 34, 584–593. [Google Scholar] [CrossRef] [PubMed]
- Oner, Z.; Kahraman, A.S.; Kose, E.; Oner, S.; Kavakli, A.; Cay, M.; Ozbag, D. Quantitative evaluation of normal aqueductal cerebrospinal fluid flow using phase-contrast cine MRI according to age and sex. Anat. Rec. 2017, 300, 549–555. [Google Scholar] [CrossRef]
- Tawfik, A.M.; Elsorogy, L.; Abdelghaffar, R.; Naby, A.A.; Elmenshawi, I. Phase-Contrast MRI CSF flow measurements for the diagnosis of normal-pressure hydrocephalus: Observer agreement of velocity versus volume parameters. Am. J. Roentgenol. 2017, 208, 838–843. [Google Scholar] [CrossRef]
- Spijkerman, J.M.; Geurts, L.J.; Siero, J.C.; Hendrikse, J.; Luijten, P.R.; Zwanenburg, J.J. Phase contrast MRI measurements of net cerebrospinal fluid flow through the cerebral aqueduct are confounded by respiration. J. Magn. Reson. Imaging 2019, 49, 433–444. [Google Scholar] [CrossRef] [PubMed]
- Flórez, Y.N.; Moratal, D.; Forner, J.; Martí-Bonmatí, L.; Arana, E.; Guajardo-Hernández, U.; Millet-Roig, J. Semiautomatic analysis of phase contrast magnetic resonance imaging of cerebrospinal fluid flow through the aqueduct of sylvius. Magn. Reson. Mater. Phys. Biol. Med. 2006, 19, 78–87. [Google Scholar] [CrossRef] [PubMed]
- Alperin, N.; Lee, S.H. PUBS: Pulsatility-based segmentation of lumens conducting non-steady flow. Magn. Reson. Med. 2003, 49, 934–944. [Google Scholar] [CrossRef] [PubMed]
- Litjens, G.; Kooi, T.; Bejnordi, B.E.; Setio, A.A.A.; Ciompi, F.; Ghafoorian, M.; van der Laak, J.A.W.M.; van Ginneken, B.; Sánchez, C.I. A survey on deep learning in medical image analysis. Med. Image Anal. 2017, 42, 60–88. [Google Scholar] [CrossRef] [PubMed]
- Bochkovskiy, A.; Wang, C.; Liao, H. YOLOv4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar] [CrossRef]
- Wang, C.-Y.; Bochkovskiy, A.; Liao, H.-Y.M. Scaled-YOLOv4: Scaling Cross Stage Partial Network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 13029–13038. [Google Scholar] [CrossRef]
- Ibtehaz, N.; Rahman, M.S. MultiResUNet: Rethinking the U-Net architecture for multimodal biomedical image segmentation. Neural Netw. 2020, 121, 74–87. [Google Scholar] [CrossRef] [PubMed]
- Ronneberger, O.; Fischer, P.; Brox, T. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Munich, Germany, 5–9 October 2015; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2015; Volume 9351, pp. 234–241. [Google Scholar]
- Tsou, C.-H.; Cheng, Y.-C.; Huang, C.-Y.; Chen, J.-H.; Chen, W.-H.; Chai, J.-W.; Chen, C.C.-C. Using deep learning convolutional neural networks to automatically perform cerebral aqueduct CSF flow analysis. J. Clin. Neurosci. 2021, 90, 60–67. [Google Scholar] [CrossRef] [PubMed]
- Ahmed, A.A.; Ali, W.; Abdullah, T.A.A.; Malebary, S.J. Classifying cardiac arrhythmia from ECG signal using 1D CNN deep learning model. Mathematics 2023, 11, 562. [Google Scholar] [CrossRef]
- Lakhdari, K.; Saeed, N. A new vision of a simple 1D convolutional neural networks (1D-CNN) with Leaky-ReLU function for ECG abnormalities classification. Intell. Med. 2022, 6, 100080. [Google Scholar] [CrossRef]
- Kiranyaz, S.; Avci, O.; Abdeljaber, O.; Ince, T.; Gabbouj, M.; Inman, D.J. 1D convolutional neural networks and applications: A survey. Mech. Syst. Signal Process. 2021, 151, 107398. [Google Scholar] [CrossRef]
- The MathWorks, Inc. MATLAB Version 25.1.0.2943329 (R2025a). 2025. Available online: https://www.mathworks.com (accessed on 14 June 2026).
- MacDonald, M.E.; Forkert, N.D.; Pike, G.B.; Frayne, R. Phase error correction in time-averaged 3D phase contrast magnetic resonance imaging of the cerebral vasculature. PLoS ONE 2016, 11, e0149930. [Google Scholar] [CrossRef] [PubMed]
- Holland, B.J.; Printz, B.F.; Lai, W.W. Baseline correction of phase-contrast images in congenital cardiovascular magnetic resonance. J. Cardiovasc. Magn. Reson. 2010, 12, 11. [Google Scholar] [CrossRef] [PubMed]
- Jiang, J.; Kokeny, P.; Ying, W.; Magnano, C.; Zivadinov, R.; Haacke, E.M. Quantifying errors in flow measurement using phase contrast magnetic resonance imaging: Comparison of several boundary detection methods. Magn. Reson. Imaging 2015, 33, 185–193. [Google Scholar] [CrossRef] [PubMed]
- Laganà, M.M.; Jakimovski, D.; Bergsland, N.; Dwyer, M.G.; Baglio, F.; Zivadinov, R. Measuring aqueduct of sylvius cerebrospinal fluid flow in multiple sclerosis using different software. Diagnostics 2021, 11, 325. [Google Scholar] [CrossRef] [PubMed]
- Vlasák, A.; Gerla, V.; Skalický, P.; Mládek, A.; Sedlák, V.; Vrána, J.; Whitley, H.; Lhotská, L.; Beneš, V.; Bradáč, O. Boosting phase-contrast MRI performance in idiopathic normal pressure hydrocephalus diagnostics by means of machine learning approach. Neurosurg. Focus 2022, 52, E6. [Google Scholar] [CrossRef] [PubMed]
- Moon, H.C.; Baek, H.-M.; Park, Y.S. Comparison of 3 and 7 Tesla magnetic resonance imaging of obstructive hydrocephalus caused by tectal glioma. Brain Tumor Res. Treat. 2016, 4, 150–154. [Google Scholar] [CrossRef] [PubMed]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.











