\subsection{Dataset}
This study included 287 patients with acute coronary syndrome (ACS).
No patient is represented by more than one case.
The IVUS data used in this study were acquired at Chiba University Hospital.
The outcome was defined as the occurrence of No-reflow / Slow-flow after PCI,
which was determined using the TIMI flow grade.
Of these, 68 cases (23.7\%) exhibited No-reflow / Slow-flow (positive),
and 219 cases (76.3\%) did not (negative, Normal).
IVUS images were acquired before stent placement using a Terumo VIEW IT
(40 MHz) or AltaView (60 MHz) system.
For each case, a single physician annotated the IVUS images with the
following: the Vessel region, the Lumen region,
and the angle (direction) of attenuated plaque.
The annotated frames were frames selected by the physician at approximately
1 mm intervals, and the number of such frames varied from case to case.
Specifically, there were 18 frames in 2 cases, 19 frames in 1 case,
20 frames in 268 cases, 21 frames in 12 cases, 22 frames in 2 cases,
24 frames in 1 case, and 26 frames in 1 case (287 cases in total).
Plaque area-based features were computed from the central 13 of these frames.
\subsection{Data Preprocessing}
This section describes the preprocessing of the images, clinical variables,
and plaque area features used as input to the model.
\subsubsection{Image Input}
Each IVUS frame was rescaled to a common physical scale and then subjected to
a polar coordinate transformation.
First, the per-case pixel spacing $s$ [mm/pixel] was obtained from the DICOM
tag Pixel Spacing (0028,0030).
The original image is 512$\times$512 pixels, and the radius $R$ [pixel] of
the region cropped from its center was determined by the following equation.
\begin{equation}
R = \left\lfloor r_0 \cdot \frac{s^{*}}{s} \right\rfloor,\quad r_0 = 256,
\quad s^{*} = 0.019531\ \mathrm{mm/pixel}\ (=10/512)
\end{equation}
Here, $r_0$ is the radius [pixel] from the center of the original image to
its edge, and $s^{*}$ is the reference pixel spacing.
That is, the physical radius of the cropped region is
$R\,s \approx r_0 s^{*} \approx 5.0$ mm,
which remains constant regardless of the scan depth at acquisition
(i.e., the case-to-case differences in pixel spacing).
When $R$ exceeds $r_0$ (i.e., $s < s^{*}$),
the original image was zero-padded around its periphery to secure the
required extent.
This disk of radius $R$ was linearly transformed into polar coordinates to
produce an image of 254 pixels in the radial direction and 224 pixels in the
angular direction (using cubic interpolation).
The 30 pixels in the radial direction corresponding to the probe boundary
were then removed, yielding a 224$\times$224-pixel input image.
Pixel values were scaled to the range [0, 1] and then standardized using the
mean and standard deviation computed from the training data.
Thirty-two frames per case were used as input.
These frames were selected from the physician-selected frames
(the annotated frames at approximately 1 mm intervals,
typically 20 per case, ranging from 18 to 26) via the following two-stage
procedure.
In the first stage, for each interval between adjacent physician-selected
frames, 4 frames were added such that their DICOM frame numbers divided the
interval into equal parts.
This yields a total of 96 frames for cases with 20 physician-selected
frames.
For cases in which the number of physician-selected frames differed from
20, the number of frames obtained by subtracting the number of
physician-selected frames from 96 was distributed as evenly as possible
across the intervals, so that the total was, in principle, 96 frames.
Note that all added frames are actual frames contained in the original
DICOM data; no image synthesis or interpolation was performed.
In the second stage, 32 frames were extracted from the resulting 96 frames
at evenly spaced indices, including both endpoints.
All models described below receive the same 32 frames as input.
\subsubsection{Clinical Variables}
A total of 30 clinical variables were used,
comprising 17 continuous variables and 13 categorical variables.
All of these are known either before or at the time of PCI.
The continuous variables are age (Age), body weight (BW), height (HT),
systolic blood pressure (sBP), heart rate (HR),
left ventricular ejection fraction (LVEF), creatinine (Cre),
blood glucose (BS), HbA1c, platelet count (PLT),
total cholesterol (T-chol), HDL cholesterol (HDL-C),
LDL cholesterol (LDL-C), triglycerides (TG), BNP, troponin I (TnI),
and CK-MB.
The categorical variables are male sex (Men), diabetes mellitus (DM),
hypertension (HTN), dyslipidemia (DL), smoking (Smoking),
hemodialysis (HD), old myocardial infarction (OMI),
history of heart failure (HF\_history), troponin elevation (TnElevation),
diagnosis type (Diagnosis), Killip classification (Killip),
ST deviation (ST\_deviation), and cardiac arrest (CA).
% TODO [carried over from ja-drafter, unresolved]: variable names and
% definitions above are provisional and still require confirmation by a
% physician before this is considered final.
The continuous variables were standardized (z-scored) using the mean and
standard deviation computed from the training data only
(missing values were excluded from this calculation).
After standardization, missing values were imputed with 0,
and a missingness indicator denoting whether each continuous variable was
missing was added.
For categorical variables, missing values were encoded as $-1$,
and all other values were used as-is without normalization.
Accordingly, the dimensionality of the clinical variables is
$17 \times 2$ (value and missingness indicator for each of the 17
continuous variables) $+\, 13$ (categorical variables) $= 47$ dimensions.
\subsubsection{Plaque Area Features}
In addition to the clinical variables, 4-dimensional case-level features
based on the area of attenuated plaque were computed.
First, the per-frame attenuated plaque area was computed as follows.
The physician annotates attenuated plaque as a sector defined by a center,
a start point, and an end point.
The number of pixels in the intersection of this sector with the vessel
wall region (the Vessel+Lumen region minus the Lumen region) was counted
and used to compute the area.
When multiple sectors were present in a single frame, their union was used.
The area [mm$^2$] was calculated as the pixel count multiplied by the pixel
spacing in the row direction and the pixel spacing in the column direction.
The pixel spacing was obtained from the DICOM tag for each case.
For frames lacking a Vessel+Lumen annotation,
the vessel contour was interpolated by linearly interpolating the vessel
center and radial distance from the annotated frames.
Next, case-level features were computed.
For each case, the 6 frames before and after the center of the
physician-selected frame sequence were used (13 frames in total).
For the per-frame areas of these 13 frames,
four statistics were computed: the total (total), maximum (max),
minimum (min), and standard deviation (std, population standard deviation).
These four features were standardized using the mean and standard deviation
of the training data, and then concatenated with the 47-dimensional
clinical variables to form a 51-dimensional vector.
This vector was used as the model's non-image input.
\subsection{Proposed Architecture: KSCNet}\label{sec:kscnet}
This section describes the architecture of the proposed model, KSCNet,
and the loss function used for training.
\subsubsection{Overview}
KSCNet is a model that adapts USCNet \citep{wang2026},
a model that takes a 3D volume as input, to 2D images.
KSCNet jointly solves segmentation of the vessel (the Vessel+Lumen region)
and classification of the complication (No-reflow / Slow-flow) within a
single model.
The input per case consists of $T=32$ frames of $224 \times 224$-pixel IVUS
images, $\{x_i\}_{i=1}^{T}$,
together with a 51-dimensional non-image vector $c$ composed of the
47-dimensional clinical variables and the 4-dimensional plaque area
features (Section 3.2).
The model consists of the following four stages (Stage 1 through Stage 4).
In Stage 1, each frame is processed by a 2D encoder--decoder to obtain a
per-frame segmentation output and frame-level features.
In Stage 2, the frame-level features and the clinical variables are
integrated via an inter-frame Transformer.
In Stage 3, case-level features are obtained via cross-attention using the
segmentation features from Stage 1 as the query.
In Stage 4, the probability of complication occurrence is output from
these case-level features.
\subsubsection{Stage 1: Frame-Wise 2D Encoder--Decoder}
In Stage 1, a weight-shared 2D encoder--decoder is applied to all 32
frames.
The encoder consists of a Patch Embedding layer and a Vision Transformer
(ViT), and the decoder is of the UNETR type.
Patch Embedding is implemented via convolution, with a patch size of
$16 \times 16$.
This converts the $224 \times 224$ input image into
$14 \times 14 = 196$ tokens, each with a hidden dimension of 384.
The ViT has 12 layers, 12 heads, an MLP dimension of 3072,
and a dropout rate of 0.0.
The decoder outputs a single-channel segmentation logit map
$\mathrm{seg}_i \in \mathbb{R}^{224 \times 224}$ for each frame.
Skip connections use the outputs of the 4th, 7th, and 10th layers of the
ViT, together with convolutional features computed from the input image.
The UNETR feature size was set to 16.
In addition, two types of 384-dimensional features used in Stage 2 and
Stage 3 are defined as follows.
The frame feature $f_i$ is the average, over the token dimension,
of the Patch Embedding tokens before they are input to the ViT.
The segmentation feature $s_i$ is the average, over the token dimension,
of the output of the final (12th) layer of the ViT.
\subsubsection{Stage 2: Inter-Frame Transformer}
Stage 2 integrates the inter-frame relationships with the clinical
information.
The 51-dimensional non-image vector $c$ is projected by a linear layer
into a single 384-dimensional token, which is appended to the end of the
32 frame tokens $f_1, \dots, f_{32}$, yielding 33 tokens in total.
Learnable positional embeddings (33 of them) and a type embedding
indicating the kind of token (one of two types: frame or clinical
variable) are added to these tokens.
This token sequence is input to a Transformer encoder.
The Transformer encoder consists of self-attention layers with 2 layers,
8 heads, an FFN dimension of 1536, and a dropout rate of 0.1.
Its output is denoted $z \in \mathbb{R}^{33 \times 384}$.
\subsubsection{Stage 3: Aggregation of Case-Level Features}
In Stage 3, case-level features are obtained via cross-attention.
The query $q$ is the frame average of the Stage 1 segmentation features,
$\bar{s} = \frac{1}{T}\sum_{i=1}^{T} s_i$ (a single 384-dimensional
vector), and the key and value are the 33 tokens of the Stage 2 output $z$.
Single-head cross-attention yields the case-level feature $h$
(384-dimensional) according to the following equation.
\begin{equation}
h = \mathrm{softmax}\!\left(\frac{(W_q \bar{s})(W_k z)^{\top}}{\sqrt{d}}
\right) W_v z, \quad d = 384
\end{equation}
Here, $W_q, W_k, W_v$ are the linear projections for the query, key,
and value, respectively.
\subsubsection{Stage 4: Classification Head}
In Stage 4, the case-level feature $h$ is passed through fully connected
layers, $384 \to 256 \to \text{BatchNorm} \to \text{ReLU} \to
\text{Dropout}\ (0.5) \to 1$, to obtain the logit $\ell$.
Applying the sigmoid function $\sigma(\ell)$ yields the predicted
probability $p$ of No-reflow / Slow-flow occurrence.
\subsubsection{Loss Function}
To jointly optimize segmentation and classification during training,
we used the following loss, built upon the Dynamic Loss proposed in
USCNet \citep{wang2026}.
The overall loss is given as a weighted sum of three terms,
as follows.
\begin{equation}
L_{\mathrm{total}} = \omega_{\mathrm{Dice}} L_{\mathrm{Dice}}
+ \omega_{\mathrm{BCE}} L_{\mathrm{BCE}} + \omega_{\mathrm{Focal}}
L_{\mathrm{Focal}}
\end{equation}
$L_{\mathrm{Dice}}$ is defined as $L_{\mathrm{Dice}} = 1 - \mathrm{Dice}$,
using the Dice coefficient computed on the output obtained by applying the
sigmoid function to the segmentation logits.
It is averaged only over frames that have a segmentation mask,
and frames without a mask are excluded from the loss computation.
$L_{\mathrm{BCE}}$ is the binary cross-entropy with respect to the case
label.
$L_{\mathrm{Focal}}$ (the focal term) is defined by the following
equation.
\begin{equation}
L_{\mathrm{Focal}} = \alpha\,(1 - p_t)^{\gamma} L_{\mathrm{BCE}},
\quad p_t = \exp(-L_{\mathrm{BCE}})
\end{equation}
Here, $\alpha = 0.25$ and $\gamma = 2$.
$\alpha$ is a class-independent constant,
and $p_t$ was computed from the batch-averaged $L_{\mathrm{BCE}}$.
The initial values of the weights
$(\omega_{\mathrm{Dice}}, \omega_{\mathrm{BCE}}, \omega_{\mathrm{Focal}})$
were set to $(0.8, 0.02, 0.18)$.
At the end of each epoch, the mean Dice coefficient $S_{\mathrm{Dice}}$
over masked frames in the validation data was computed,
and the weights for the next epoch were updated accordingly as follows
($\lambda = 0.1$, threshold $0.8$).
\begin{lstlisting}
# Weight update at the end of each epoch
S = S_Dice # mean validation Dice (masked frames only)
if S <= 0.8:
w_Dice = 1 - S
w_BCE = lambda * S # lambda = 0.1
w_Focal = S - w_BCE
else:
w_Dice = 0 # disable segmentation supervision
w_BCE = lambda
w_Focal = 1 - lambda
\end{lstlisting}
That is, in epochs where $S_{\mathrm{Dice}}$ is at or below the threshold,
a lower $S_{\mathrm{Dice}}$ results in a larger weight on the Dice term,
prioritizing segmentation learning.
In epochs where $S_{\mathrm{Dice}}$ exceeds the threshold,
segmentation supervision is turned off and only classification is
learned.
In both cases, the three weights sum to 1.
\subsection{Baseline and Comparison Methods}\label{sec:baselines}
To evaluate the performance of the proposed model, KSCNet (Section 3.3),
we compared it against the following five methods:
(1) physician interpretation,
(2) a previously reported attenuated plaque angle score,
(3) ResNet-34+LSTM (image only),
(4) ResNet-34+LSTM (image, clinical variables, and plaque area features),
and (5) USCNet.
\subsubsection{Physician Interpretation}
Three cardiologists predicted the occurrence of the complication
(No-reflow / Slow-flow) from the IVUS images alone.
No clinical information was provided to them.
Each physician output a confidence score from 0 to 100,
with scores of 50 or above classified as positive and 49 or below as
negative.
All 287 cases were independently interpreted by each of the three
physicians.
The results from the three physicians were computed per fold and then
averaged.
\subsubsection{Previously Reported Attenuated Plaque Angle Score}
We used a non-deep-learning score based on the angle of attenuated plaque
\citep{wu2011}.
This score was applied to the same data split as the other methods
(the same 287 cases and the same folds).
Its calculation used the same 13 frames (Section 3.2) as those used for
the plaque area features.
\subsubsection{ResNet-34+LSTM (Image Only)}
Each of the 32 frame images was input to ResNet-34 to obtain a
512-dimensional feature vector per frame.
ResNet-34 was initialized with weights pretrained on ImageNet.
To accommodate single-channel input, the weights of the first
convolutional layer were replaced with the average of the three-channel
weights.
The resulting sequence of 32 feature vectors was input to an LSTM
(2 layers, hidden dimension 256, unidirectional, dropout rate 0.4).
The LSTM output at the final frame (256-dimensional) was passed through
fully connected layers, $256 \to 128 \to 64 \to 2$.
ReLU was used as the activation function, a dropout rate of 0.4 was
applied, and the loss function was cross-entropy.
\subsubsection{ResNet-34+LSTM (Image, Clinical Variables, and Plaque Area
Features)}
This model adds a 51-dimensional vector (47-dimensional clinical
variables and 4-dimensional plaque area features; Section 3.2) to the
configuration of (3).
This vector was concatenated with the LSTM output (256-dimensional) to
form a 307-dimensional vector, which was input to fully connected layers,
$307 \to 128 \to 64 \to 2$.
All other aspects of the architecture and training are identical to (3).
In this model, the non-image vector is supplied after the LSTM.
This contrasts with KSCNet, which instead adds the non-image vector as a
single token to the frame sequence and integrates it via a Transformer.
\subsubsection{USCNet}
USCNet \citep{wang2026} is the 3D model that served as the prototype for
KSCNet.
Its input is a 3D volume of $1 \times 32 \times 224 \times 224$ formed by
stacking the same 32 frames, together with the 51-dimensional vector.
In the 3D Patch Embedding, the patch size was $16 \times 16 \times 16$,
converting the input into $2 \times 14 \times 14 = 392$ tokens
(hidden dimension 384).
These tokens were input to a ViT (12 layers, 12 heads,
MLP dimension 3072, dropout rate 0.0),
and a UNETR-type decoder segmented the Vessel+Lumen region in 3D.
The 51-dimensional vector was projected by a linear layer into a single
384-dimensional token.
For classification, cross-attention was first performed with the image
tokens as the query and the clinical-variable token as the key and value.
Next, a second cross-attention was performed with the average of the
final-layer ViT tokens as the query and the output of the first
cross-attention as the key and value.
Its output was passed through fully connected layers,
$384 \to 256 \to \text{BatchNorm} \to \text{ReLU} \to
\text{Dropout}\ (0.5) \to 1$.
The same Dynamic Loss as KSCNet (Section 3.3) was used for training.
The differences from KSCNet are as follows.
KSCNet processes each frame in 2D and integrates the frames via a
Transformer in which the non-image vector is added as an additional
token.
USCNet, in contrast, processes the volume in 3D and integrates the
non-image vector via cross-attention against all of the image tokens.
\subsubsection{Common Settings}
Whereas the ResNet-34-based methods (3) and (4) use pretrained weights,
KSCNet and USCNet were trained from random initialization without
pretrained weights.
(4), (5), and KSCNet all take the same 32-frame image input and the same
51-dimensional vector as input.
No class weighting was used for any model, and the batch size was 4 for
all models.
\subsection{Evaluation Protocol}\label{sec:evaluation}
Performance was evaluated using case-level 5-fold cross-validation.
Cases were split into five folds such that data from the same case never
appeared in more than one fold.
All of the compared methods (Section 3.4) were evaluated on the same 287
cases and the same folds.
Positive and negative cases were each split into five groups
(stratification); of the five folds, one was used as the test set,
another as the validation set, and the remaining three as the training
set.
The validation data were used for model selection and threshold
determination, and the test data were used only for the final
evaluation.
AUC was used as the primary evaluation metric,
with F1 score and specificity as secondary metrics;
accuracy, precision, and recall were also computed.
The positive class was defined as No-reflow / Slow-flow.
AUC was computed from the predicted probability of each method.
For the physicians, the confidence score normalized to the range [0, 1]
was used, and for the previously reported attenuated plaque angle score,
the score itself was used.
In addition, for KSCNet and USCNet, which perform segmentation of the
Vessel+Lumen region, segmentation accuracy was evaluated using the Dice
coefficient.
The Dice coefficient was computed frame by frame between the prediction
binarized at a threshold of 0.5 and the ground-truth mask of the
Vessel+Lumen region.
The ground-truth masks include both the annotated frames and the frames
interpolated from them.
Frames outside the annotated range have no ground-truth mask and were
therefore excluded from the aggregation.
For the test data of each fold, the Dice coefficients of the valid frames
of all cases were averaged, and the results are reported as the mean
$\pm$ standard deviation across the five folds.
Because the metrics other than AUC are based on binary predictions,
a threshold is required.
For the deep learning models and the previously reported score,
the threshold was determined using the Youden Index \citep{youden1950} on
the validation data of each fold.
For the previously reported score, cases in which the score exceeded the
threshold were classified as positive.
Each metric was computed on the test data for each fold and then averaged
across folds.
Results are reported as the mean $\pm$ standard deviation
(sample standard deviation, $n-1$) across the five folds.
\subsection{Implementation Details}
Experiments were conducted on a single NVIDIA RTX A6000 (48 GB) GPU,
implemented in an environment with Python 3.10.12 and PyTorch 2.4.1
(CUDA 12.1).
The loss function was cross-entropy for ResNet-34+LSTM (Section 3.4) and
the Dynamic Loss for KSCNet and USCNet (Section 3.3).
The training settings were common to all trained models: ResNet-34+LSTM
(image only), ResNet-34+LSTM (image, clinical variables,
and plaque area features), USCNet, and KSCNet.
Adam was used as the optimizer, the maximum number of epochs was 200,
and early stopping with a patience of 20 was applied.
A ReduceLROnPlateau-type learning rate scheduler was used,
with a decay factor of 0.5, a patience of 10,
and a minimum learning rate of $10^{-7}$.
Early stopping and the learning rate scheduler monitored the
classification loss on the validation data (the sum of the BCE loss and
the focal term for KSCNet and USCNet, and cross-entropy for
ResNet-34+LSTM), and the model from the epoch at which this loss was
minimized was adopted.
The random seed was 42, and the batch size was 4.
Hyperparameters were searched via random search (20 trials) within each
fold.
The learning rate was sampled log-uniformly from the range $10^{-3}$ to
$10^{-5}$, and Adam's $\beta_1$ was sampled as
$\beta_1 = 1 - 10^{-x}$ (ranging from 0.90 to 0.99),
where $x$ is a uniform random variable on $[1, 2]$.
Because the random values are determined by the seed and the trial
number, the learning rate and $\beta_1$ coincide across all methods for
the same trial number.
Among the 20 trials, the trial that achieved the highest AUC on the
validation data was adopted as the best model for that fold and evaluated
on the test data.