diff --git a/drafts/ja/3_5_evaluation.md b/drafts/ja/3_5_evaluation.md index cefbccb..d85d36a 100644 --- a/drafts/ja/3_5_evaluation.md +++ b/drafts/ja/3_5_evaluation.md @@ -17,6 +17,12 @@ 先行研究の減衰プラーク角度スコアについては,スコアそのものを用いた. また,Vessel+Lumen領域のセグメンテーションを行うKSCNetおよびUSCNetについては, セグメンテーションの精度をDice係数により評価した. +Dice係数は,閾値0.5で二値化した予測と,Vessel+Lumen領域の教師マスクとの間で, +フレームごとに算出した. +教師マスクは,アノテーション付きのフレームと,そこから補間したフレームの両方を含む. +アノテーションの範囲外のフレームは教師マスクがないため,集計から除いた. +各フォールドのテスト用データについて,全症例の有効なフレームのDice係数を平均し, +5フォールドにおける平均値±標準偏差で示す. AUC以外の指標は二値の予測に基づくため,閾値が必要である. 深層学習モデルおよび先行研究のスコアでは, diff --git a/drafts/ja/4_experiment.md b/drafts/ja/4_experiment.md new file mode 100644 index 0000000..08dadc9 --- /dev/null +++ b/drafts/ja/4_experiment.md @@ -0,0 +1,114 @@ +### 4.1 Overall Comparison + +3.3節の提案手法KSCNetおよび3.4節の比較手法について, +5分割交差検証により得られた性能をTable 1に示す. + +手法ごとに入力が異なる. +医師は,画像のみを読影した. +減衰プラーク角度スコア[wu2011]は, +プラーク面積特徴と同じ13フレームを用いて算出される(3.4節). +画像のみのモデルは,画像のみを入力とする. +それ以外の学習モデルは,画像,臨床変数47次元, +およびプラーク面積特徴4次元を入力とする. + +**Table 1.** 各手法の性能. +5分割交差検証における5フォールドの平均値±標準偏差(不偏標準偏差)を示す. +医師3名平均の標準偏差は,3名それぞれの標準偏差の平均である. +「臨床47」は臨床変数47次元,「プラーク4」はプラーク面積特徴4次元を表す. +AUC以外の指標の閾値は,医師では確信度50, +減衰プラーク角度スコアおよび学習モデルでは検証用データを用いたYouden Indexとした(3.4節,3.5節). +Diceは参考値として,USCNetおよびKSCNetのみで算出した. + +| 手法 | 入力 | AUC | F1値 | Specificity | Accuracy | Precision | Recall | Dice | +|---|---|---|---|---|---|---|---|---| +| 医師3名平均 | 画像のみ | 0.64±0.09 | 0.35±0.12 | 0.75±0.05 | 0.67±0.06 | 0.35±0.14 | 0.42±0.13 | — | +| 減衰プラーク角度スコア[wu2011] | 減衰プラークの角度(13フレーム) | 0.65±0.13 | 0.38±0.13 | 0.70±0.17 | 0.65±0.09 | 0.35±0.14 | 0.48±0.29 | — | +| ResNet-34+LSTM(画像のみ) | 画像のみ | 0.59±0.16 | 0.36±0.15 | 0.63±0.15 | 0.60±0.12 | 0.30±0.13 | 0.47±0.21 | — | +| ResNet-34+LSTM(画像,臨床変数,およびプラーク面積特徴) | 画像+臨床47+プラーク4 | 0.70±0.17 | 0.43±0.17 | 0.67±0.06 | 0.65±0.08 | 0.34±0.13 | 0.58±0.24 | — | +| USCNet | 画像+臨床47+プラーク4 | 0.63±0.13 | 0.40±0.12 | 0.60±0.30 | 0.60±0.17 | 0.34±0.08 | 0.60±0.31 | 0.78±0.07 | +| KSCNet(提案) | 画像+臨床47+プラーク4 | 0.72±0.16 | 0.50±0.14 | 0.81±0.05 | 0.75±0.04 | 0.46±0.07 | 0.55±0.23 | 0.82±0.07 | + +比較した手法の中で,平均AUC,平均F1値,および平均Specificityは, +いずれもKSCNetが最も高かった. + +KSCNetとUSCNetの比較では,平均AUCはKSCNetがUSCNetより0.09高かった. +KSCNetとUSCNetは同じDynamic Lossを用い, +主な違いは,2次元処理か3次元処理かと, +臨床変数およびプラーク面積特徴の統合方式である(3.3節,3.4節). +ResNet-34+LSTM(画像,臨床変数,およびプラーク面積特徴)の平均AUCは, +USCNetより0.07高く,KSCNetと同程度であった(差は0.02). + +### 4.2 Comparison with Physicians and the Attenuated Plaque Angle Score + +医師3名平均のAUCは0.64,減衰プラーク角度スコアのAUCは0.65であった(Table 1). +KSCNetの平均AUC(0.72)は,これらをいずれも上回った. + +### 4.3 Input Configuration and Segmentation + +ResNet-34+LSTMにおいて,入力を画像のみから +画像,臨床変数47次元,およびプラーク面積特徴4次元に変えると, +平均AUCは0.59から0.70に,平均F1値は0.36から0.43に変化した(Table 1). + +KSCNetとUSCNetは,合併症の予測と同時に, +Vessel+Lumen領域のセグメンテーションを単一のモデルで行う. +テスト用データにおける平均Dice係数は,KSCNetが0.82±0.07, +USCNetが0.78±0.07であり(Table 1), +合併症予測の補助タスクとして十分な精度でセグメンテーションを行えた. + +--- + +## 英訳への指示 + +- Table 1: `\label{tab:results}` を付け,本文は `\ref{tab:results}` で参照する + (「Table 1」の直書きにしない). +- `±` は `\pm`(数式モード)で書く. +- 表中の「—」は空欄ではなく `---` とする. +- `[wu2011]` は `\cite{wu2011}` にする. +- 表は1段幅に収まらないため,`\tablesize` の指定や列幅の調整 + (`tabularx`/`p{}` 列など)が必要. +- 4.1節の見出しは Overall Comparison,4.2節は + Comparison with Physicians and the Attenuated Plaque Angle Score,4.3節は + Input Configuration and Segmentation とする. +- 節名は Experiments(main.tex の `\section` 側にあるため,このファイルの + `###` 見出しは `\subsection` として訳す). +- 表は `adjustwidth` で全幅にするか,`\small` で調整する. +- 本文中の「Table 1」「3.x節」はすべて `\ref` に置き換える. +- 用語を固定する: 確信度=confidence score, + 減衰プラーク角度スコア=attenuated plaque angle score + (初出で "hereafter" を用いて定義),参考値=reference value, + 画像のみ=image-only. +- 以下の「未解決・要確認」は英訳に持ち込まない. + +## 確定事項・未対応事項(英訳には持ち込まない) + +### 確定済み(ユーザー確認) +1. **減衰プラーク角度スコアのSD**:NotionにSDがあるのはAUC(0.1293)のみ. + 他の指標のSDはNotionのfold別の値(小数第3位)から計算した値で, + F1値(0.13)とSpecificity(0.17)は丸め境界付近.この値で確定. +2. **医師のSD**:NotionのStd行(3名それぞれのSDの平均)を採用. + 定義をNotionで裏づけられたのはAUCのみ(0.087=(0.105+0.081+0.075)/3). +3. **[wu2011]**:PDFで確認済み(1 mmごとの減衰角度から平均減衰スコアを算出). + 3.4節の「減衰プラークの角度に基づくスコア」と一致. +4. **読影者間一致度・検定への言及・医師個別値・Accuracyの陽性率注記は書かない**. + +### 未対応 +1. **Notionの未更新**:「主張の書き方」ブロックは,書いてよい範囲を + 「平均AUC・F1とも最も高い」までとしている.本節は,Specificityも最も高いこと, + KSCNetの平均AUCが医師平均・減衰プラーク角度スコアを上回ったこと + (記述的な事実)を書いており,Notion側の更新が必要. + 3.4・3.5の記述(統合方式の違い,Diceの算出手順)もNotionに無く, + コードで確認済みの内容に基づく. +2. **4.3の「十分な精度」**:外部の基準がない.3.3節のDynamic Lossの閾値0.8 + (KSCNetは0.82で上回り,USCNetは0.78で下回る)を根拠にする案がある. +3. **Discussionに回す内容**: + - 現場では医師が多数の臨床変数を同時に統合しにくいため,モデルが統合した結果を + 提示できることには意味がある(入力条件の違いを断ったうえで述べる). + - 画像のみのモデル(AUC 0.59)は医師平均(0.64)を下回り,上回ったのは + 臨床変数とプラーク面積特徴を加えたあとである. + - Limitations:臨床変数とプラーク面積特徴は同時に加えたため個別の寄与を + 評価していない/KSCNetとUSCNetは2D/3Dと統合方式が同時に異なる/ + 3DはUSCNetのみ/KSCNetとResNet-34+LSTM(画像,臨床変数,プラーク面積特徴)は + 同程度/fold 5での性能低下/検定は行っていない. +4. **英訳の未実施**:`sections/4_experiment.tex` は雛形のまま. + `sections/3_method.tex` の評価プロトコルにも,3.5節に追記した + Dice算出方法の英訳が未反映. diff --git a/main.tex b/main.tex index df00bdb..9aeb6be 100644 --- a/main.tex +++ b/main.tex @@ -59,6 +59,21 @@ %================================================================= % Add packages and commands here. The following packages are loaded in our class file: fontenc, inputenc, calc, indentfirst, fancyhdr, graphicx, epstopdf, lastpage, ifthen, float, amsmath, amssymb, lineno, setspace, enumitem, mathpazo, booktabs, titlesec, etoolbox, tabto, xcolor, colortbl, soul, multirow, microtype, tikz, totcount, changepage, attrib, upgreek, array, tabularx, pbox, ragged2e, tocloft, marginnote, marginfix, enotez, amsthm, natbib, hyperref, cleveref, scrextend, url, geometry, newfloat, caption, draftwatermark, seqsplit % cleveref: load \crefname definitions after \begin{document} +\usepackage{listings} % code blocks (e.g., Dynamic Loss weight update in Method) +\lstset{ + basicstyle=\ttfamily\small, + backgroundcolor=\color{black!5}, + frame=single, + rulecolor=\color{black!25}, + framesep=6pt, + xleftmargin=8pt, + xrightmargin=8pt, + aboveskip=6pt, + belowskip=6pt, + columns=fullflexible, + keepspaces=true, + showstringspaces=false +} %================================================================= % Please use the following mathematics environments: Theorem, Lemma, Corollary, Proposition, Characterization, Property, Problem, Example, ExamplesandDefinitions, Hypothesis, Remark, Definition, Notation, Assumption diff --git a/sections/3_method.tex b/sections/3_method.tex index a31772e..24beecf 100644 --- a/sections/3_method.tex +++ b/sections/3_method.tex @@ -1,11 +1,493 @@ -The Materials and Methods should be described with sufficient detail to allow others to replicate and build on the published results. Please note that the publication of your manuscript implies that you must make all materials, data, computer code, and protocols associated with the publication available to readers. Please disclose at the submission stage any restrictions on the availability of materials or information. New methods and protocols should be described in detail while well-established methods can be briefly described and appropriately cited. +\subsection{Dataset} -Research manuscripts reporting large datasets that are deposited in a publicly available database should specify where the data have been deposited and provide the relevant accession numbers. If the accession numbers have not yet been obtained at the time of submission, please state that they will be provided during review. They must be provided prior to publication. +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. -Interventionary studies involving animals or humans, and other studies that require ethical approval, must list the authority that provided approval and the corresponding ethical approval code. +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. -In this section, where applicable, authors are required to disclose details of how generative artificial intelligence (GenAI) has been used in this paper (e.g., to generate text, data, or graphics, or to assist in study design, data collection, analysis, or interpretation). The use of GenAI for superficial text editing (e.g., grammar, spelling, punctuation, and formatting) does not need to be declared. +\subsection{Data Preprocessing} -\begin{quote} -This is an example of a quote. -\end{quote} +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. diff --git a/sections/4_experiment.tex b/sections/4_experiment.tex index e3e88d7..40fc8c9 100644 --- a/sections/4_experiment.tex +++ b/sections/4_experiment.tex @@ -1,162 +1,96 @@ -This section may be divided by subheadings. It should provide a concise and precise description of the experimental results, their interpretation, and the experimental conclusions that can be drawn. +\subsection{Overall Comparison} -\subsection{Subsection} -\subsubsection{Subsubsection} +Table~\ref{tab:results} shows the performance obtained by 5-fold +cross-validation for the proposed KSCNet (Section~\ref{sec:kscnet}) +and the comparison methods (Section~\ref{sec:baselines}). -Bulleted lists look like this: -\begin{itemize} -\item First bullet; -\item Second bullet; -\item Third bullet. -\end{itemize} - -Numbered lists can be added as follows: -\begin{enumerate} -\item First item; -\item Second item; -\item Third item. -\end{enumerate} - -The text continues here. - -\subsection{Figures, Tables and Schemes} - -All figures and tables should be cited in the main text as Figure~\ref{fig1}, Table~\ref{tab1}, etc. - -\begin{figure}[H] -%\isPreprints{\centering}{} % Only used for preprints -\includegraphics[width=8.0 cm]{Definitions/logo-mdpi} -\caption{This is a figure. Schemes follow the same formatting.\label{fig1}} -\end{figure} -\unskip +The input differs from method to method. +The physicians interpreted the images only. +The attenuated plaque angle score \cite{wu2011} +(hereafter, the angle score) is calculated using the same 13 frames as the +plaque area features (Section~\ref{sec:baselines}). +The image-only model takes only the images as input. +The other learned models take the images, the 47-dimensional clinical +variables, and the 4-dimensional plaque area features as input. \begin{table}[H] -%\small % Change table font size -\caption{This is a table caption. Tables should be placed in the main text near the first time they are~cited.\label{tab1}} -%\isPreprints{\centering}{} % Only used for preprints -\begin{tabularx}{\textwidth}{CCC} +\caption{Performance of each method. +Values are the mean $\pm$ standard deviation (sample standard deviation) +across the five folds of 5-fold cross-validation. +The standard deviation for the three-physician average is the mean of the +standard deviations of the three physicians. +``Clinical (47)'' denotes the 47-dimensional clinical variables, +and ``Plaque (4)'' denotes the 4-dimensional plaque area features. +The threshold for the metrics other than AUC was a confidence score of 50 +for the physicians, and the Youden Index computed on the validation data +for the attenuated plaque angle score and the learned models +(Sections~\ref{sec:baselines} and~\ref{sec:evaluation}). +Dice is given as a reference value and was computed only for USCNet and +KSCNet.\label{tab:results}} +\footnotesize +\begin{adjustwidth}{-\extralength}{0cm} +\setlength{\tabcolsep}{3pt} +\begin{tabularx}{\fulllength}{>{\raggedright\arraybackslash}p{3.4cm}% +>{\raggedright\arraybackslash}p{2.6cm}CCCCCCC} \toprule -\textbf{Title 1} & \textbf{Title 2} & \textbf{Title 3}\\ +\textbf{Method} & \textbf{Input} & \textbf{AUC} & \textbf{F1 score} +& \textbf{Specificity} & \textbf{Accuracy} & \textbf{Precision} +& \textbf{Recall} & \textbf{Dice}\\ \midrule -Entry 1 & Data & Data\\ -Entry 2 & Data & Data \textsuperscript{1}\\ +Three-physician average & Image only +& \mbox{$0.64{\pm}0.09$} & \mbox{$0.35{\pm}0.12$} & \mbox{$0.75{\pm}0.05$} & \mbox{$0.67{\pm}0.06$} +& \mbox{$0.35{\pm}0.14$} & \mbox{$0.42{\pm}0.13$} & --- \\ +Attenuated plaque angle score \cite{wu2011} +& Angle of attenuated plaque (13 frames) +& \mbox{$0.65{\pm}0.13$} & \mbox{$0.38{\pm}0.13$} & \mbox{$0.70{\pm}0.17$} & \mbox{$0.65{\pm}0.09$} +& \mbox{$0.35{\pm}0.14$} & \mbox{$0.48{\pm}0.29$} & --- \\ +ResNet-34+LSTM (image only) & Image only +& \mbox{$0.59{\pm}0.16$} & \mbox{$0.36{\pm}0.15$} & \mbox{$0.63{\pm}0.15$} & \mbox{$0.60{\pm}0.12$} +& \mbox{$0.30{\pm}0.13$} & \mbox{$0.47{\pm}0.21$} & --- \\ +ResNet-34+LSTM (image, clinical variables, and plaque area features) +& Image + Clinical (47) + Plaque (4) +& \mbox{$0.70{\pm}0.17$} & \mbox{$0.43{\pm}0.17$} & \mbox{$0.67{\pm}0.06$} & \mbox{$0.65{\pm}0.08$} +& \mbox{$0.34{\pm}0.13$} & \mbox{$0.58{\pm}0.24$} & --- \\ +USCNet & Image + Clinical (47) + Plaque (4) +& \mbox{$0.63{\pm}0.13$} & \mbox{$0.40{\pm}0.12$} & \mbox{$0.60{\pm}0.30$} & \mbox{$0.60{\pm}0.17$} +& \mbox{$0.34{\pm}0.08$} & \mbox{$0.60{\pm}0.31$} & \mbox{$0.78{\pm}0.07$} \\ +KSCNet (proposed) & Image + Clinical (47) + Plaque (4) +& \mbox{$0.72{\pm}0.16$} & \mbox{$0.50{\pm}0.14$} & \mbox{$0.81{\pm}0.05$} & \mbox{$0.75{\pm}0.04$} +& \mbox{$0.46{\pm}0.07$} & \mbox{$0.55{\pm}0.23$} & \mbox{$0.82{\pm}0.07$} \\ \bottomrule \end{tabularx} - -\noindent{\small{\textsuperscript{1} Tables may have a footer.}} +\end{adjustwidth} \end{table} -The text continues here (Figure~\ref{fig2} and Table~\ref{tab2}). +Among the compared methods, KSCNet had the highest mean AUC, +mean F1 score, and mean Specificity. -% Example of a figure that spans the whole page width and with subfigures. The same concept works for tables, too. -\begin{figure}[H] -%\isPreprints{}{% This command is only used for ``preprints''. -\begin{adjustwidth}{-\extralength}{0cm} -\centering -%} % If the paper is ``preprints'', please uncomment this parenthesis. -\subfloat[\centering]{\includegraphics[width=7.0cm]{Definitions/logo-mdpi}} -%\hfill -\subfloat[\centering]{\includegraphics[width=7.0cm]{Definitions/logo-mdpi}}\\ -\subfloat[\centering]{\includegraphics[width=7.0cm]{Definitions/logo-mdpi}} -%\hfill -\subfloat[\centering]{\includegraphics[width=7.0cm]{Definitions/logo-mdpi}} -%\isPreprints{}{% This command is only used for ``preprints''. -\end{adjustwidth} -%} % If the paper is ``preprints'', please uncomment this parenthesis. -\caption{This is a wide figure. Schemes follow the same formatting. If there are multiple panels, they should be listed as follows: (\textbf{a}) Description of what is contained in the first panel. (\textbf{b}) Description of what is contained in the second panel. (\textbf{c}) Description of what is contained in the third panel. (\textbf{d}) Description of what is contained in the fourth panel. Figures should be placed in the main text near the first time they are cited.\label{fig2}} -\end{figure} +In the comparison between KSCNet and USCNet, +the mean AUC of KSCNet was 0.09 higher than that of USCNet. +KSCNet and USCNet use the same Dynamic Loss, +and their main differences are whether processing is 2D or 3D, +and how the clinical variables and plaque area features are integrated +(Sections~\ref{sec:kscnet} and~\ref{sec:baselines}). +The mean AUC of ResNet-34+LSTM (image, clinical variables, and plaque area +features) was 0.07 higher than that of USCNet +and comparable to that of KSCNet (a difference of 0.02). -\begin{table}[H] -\caption{This is a wide table. Tables should be placed in the main text near the first time they are~cited.\label{tab2}} -%\isPreprints{\centering}{% This command is only used for ``preprints''. - \begin{adjustwidth}{-\extralength}{0cm} -%} % If the paper is ``preprints'', please uncomment this parenthesis. -%\isPreprints{\begin{tabularx}{\textwidth}{CCCC}}{% This command is only used for ``preprints''. - \begin{tabularx}{\fulllength}{CCCC} -%} % If the paper is ``preprints'', please uncomment this parenthesis. - \toprule - \textbf{Title 1} & \textbf{Title 2} & \textbf{Title 3} & \textbf{Title 4}\\ - \midrule -\multirow[m]{3}{*}{Entry 1 *} & Data & Data & Data\\ - & Data & Data & Data\\ - & Data & Data & Data\\ - \midrule -\multirow[m]{3}{*}{Entry 2} & Data & Data & Data\\ - & Data & Data & Data\\ - & Data & Data & Data\\ - \bottomrule - \end{tabularx} -% \isPreprints{}{% This command is only used for ``preprints''. - \end{adjustwidth} -%} % If the paper is ``preprints'', please uncomment this parenthesis. - \noindent{\small{* Tables may have a footer.}} -\end{table} +\subsection{Comparison with Physicians and the Attenuated Plaque Angle Score} -%\begin{listing}[H] -%\caption{Title of the listing} -%\rule{\columnwidth}{1pt} -%\raggedright Text of the listing. In font size footnotesize, small, or normalsize. Preferred format: left aligned and single spaced. Preferred border format: top border line and bottom border line. -%\rule{\columnwidth}{1pt} -%\end{listing} +The AUC of the three-physician average was 0.64, +and the AUC of the angle score was 0.65 (Table~\ref{tab:results}). +The mean AUC of KSCNet (0.72) exceeded both of these. -Text. +\subsection{Input Configuration and Segmentation} -Text. +For ResNet-34+LSTM, changing the input from the images only to the images, +the 47-dimensional clinical variables, and the 4-dimensional plaque area +features changed the mean AUC from 0.59 to 0.70 +and the mean F1 score from 0.36 to 0.43 (Table~\ref{tab:results}). -\subsection{Formatting of Mathematical Components} - -This is example 1 of an equation: -\begin{equation} -a = 1, -\end{equation} -the text following an equation need not be a new paragraph if it continues a sentence. Please punctuate equations as regular text. - -This is example 2 of an equation: -%\isPreprints{}{% This command is only used for ``preprints''. -\begin{adjustwidth}{-\extralength}{0cm} -%} % If the paper is ``preprints'', please uncomment this parenthesis. -\begin{equation} -a = b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + q + r + s + t + u + v + w + x + y + z -\end{equation} -%\isPreprints{}{% This command is only used for ``preprints''. -\end{adjustwidth} -%} % If the paper is ``preprints'', please uncomment this parenthesis. - -If the text following an equation starts a new sentence, it should be a new paragraph. Please punctuate equations as regular text. - -%% Example of a page in landscape format (with table and table footnote). -%\startlandscape -%\begin{table}[H] %% Table in wide page -%%\isPreprints{\centering}{} % This command is only used for ``preprints''. -%\caption{This is a very wide table.\label{tab3}} -% \begin{tabularx}{\textwidth}{CCCC} -% \toprule -% \textbf{Title 1} & \textbf{Title 2} & \textbf{Title 3} & \textbf{Title 4}\\ -% \midrule -% Entry 1 & Data & Data & This cell has some longer content that runs over two lines.\\ -% Entry 2 & Data & Data & Data\textsuperscript{1}\\ -% \bottomrule -% \end{tabularx} -%%\isPreprints{}{% This command is only used for ``preprints''. -% \begin{adjustwidth}{+\extralength}{0cm} -%%} % If the paper is ``preprints'', please uncomment this parenthesis. -% \noindent\small{\textsuperscript{1} This is a table footnote.} -%%\isPreprints{}{% This command is only used for ``preprints''. -% \end{adjustwidth} -%%} % If the paper is ``preprints'', please uncomment this parenthesis. -%\end{table} -%\finishlandscape - -Theorem-type environments (including propositions, lemmas, corollaries, etc.) can be formatted as follows: -%% Example of a theorem: -\begin{Theorem} -Example text of a theorem. Theorems, propositions, lemmas, etc., should be numbered sequentially (i.e., Proposition 2 follows Theorem 1). Examples or Remarks use the same formatting, but should be numbered separately, so a document may contain Theorem 1, Remark 1 and Example~1. -\end{Theorem} - -The text continues here. Proofs must be formatted as follows: - -%% Example of a proof: -\begin{proof}[Proof of Theorem 1] -Text of the proof. Note that the phrase ``of Theorem 1'' is optional if it is clear which theorem is being referred to. -\end{proof} -The text continues here. +KSCNet and USCNet perform segmentation of the Vessel+Lumen region +in a single model, simultaneously with the prediction of the complication. +The mean Dice coefficient on the test data was 0.82 $\pm$ 0.07 for KSCNet +and 0.78 $\pm$ 0.07 for USCNet (Table~\ref{tab:results}), +and segmentation was performed with sufficient accuracy as an auxiliary +task for complication prediction.