Radiologists judge a breast lesion largely by its edge. Spiky, lobulated, or blurred margins suggest cancer, while smooth, sharp ones suggest a benign lesion. Current models handle this edge in two ways, and neither represents it directly. Handcrafted radiomics compresses the whole margin into a few fixed formulas such as compactness or sphericity. Deep models either look at the full image or average features over the lesion mask. This proposal treats the margin as a sequence. We trace the segmented boundary, sample a thin strip of image straddling it (inside to outside) at each point along the contour, and unroll that strip into a one-dimensional, circular signal. We then scan this signal with one-dimensional convolutional filters, the same tool genomics uses to find short recurring patterns ("motifs") such as transcription-factor binding sites in DNA.
The goal is less about raw accuracy than about what survives a change of hospital. An unrolled margin is automatically standardized: lesion size, position, orientation, and the scanner's field of view all drop out. Most of the surrounding image, which is where site-specific shortcuts live, is gone, but a controlled band of tissue just outside the lesion is kept. Training on two public breast ultrasound collections and testing on a third from a different institution lets us ask a sharp question. Do margin motifs stay accurate when the test hospital's images, and the test hospital's own automatically produced lesion masks, differ from training? The current strongest method appears to lose more under exactly those conditions.
Core Claim
A lesion representation built by circular 1D motif scanning of a boundary-anchored intensity strip has two properties we will test. First, it degrades less than mask-averaged deep features when moved to an unseen site without target-site recalibration and with predicted rather than expert masks. Second, it adds information to those features when the two are combined. The second claim matters because the strongest existing pipeline is already near the ceiling on the external set. We do not expect to beat it outright with ideal masks plus target calibration. We do expect to beat it in the realistic setting it was not tested in. If neither claim holds, margin unrolling is a curiosity and the proposal has failed.
Relation to Prior Work
The method borrows from three sources.
From genomics it takes the 1D convolution as a sliding pattern detector. Li et al. describe the weight-matrix scan over one-hot sequences. Lin et al. pair it with pooling so a motif is found wherever it occurs. DeepSF sets filter widths to match physical structure lengths. The SARS-CoV-2 primer work (Classification and specific primer design) turns maximally activating filters back into readable motifs. All of these operate on molecular strings. Our new step is to construct a biologically meaningful sequence from an image. The shallow-is-enough findings of Dua et al. and Xu et al. motivate keeping the scanner small.
From anatomical masking it takes the idea that standardizing coordinates removes shortcuts. The Role of Pleura and Adipose in Lung Ultrasound AI showed this most directly. Isolating and mathematically straightening the pleural line removed a subcutaneous-fat shortcut, raising AUC from 0.6553 to 0.7742. That study then classified the straightened region with a 2D video network, on one center. We generalize the straightening to closed lesion contours, scan the result as a sequence, and test across sites.
The direct competitor is Lesion-Centric Latent Phenotypes from Segmentation Encoders (duplicate record here; Lesion-Centric Latent Phenotypes from Segmentation Encoders for Breast Ultrasound Interpretability). It averages segmentation-encoder features under the mask, a method called mask-weighted pooling that originated in lung CT triage (Bai). It reaches 0.982 AUC on the external BUS-BRA set after lightweight bottleneck calibration on target data. Its margin knowledge enters only through handcrafted compactness and sharpness scores in a symbolic gate. Averaging over the mask discards where along the boundary a feature occurs. It also depends entirely on the mask being good, which the paper's evaluation, as summarized in the file, does not stress.
Two papers constrain the design. Comparing Handcrafted Radiomics Versus Latent Deep Learning Features for Hemorrhagic Stroke found deep latents only slightly, and not always significantly, better than 1,693 radiomic features on an external cohort. That result is a warning that "learned beats handcrafted" is not automatic. The same study found that including tissue around the lesion helped, which is why our strip extends outward rather than stopping at the mask.
For the cross-site constraint we reuse the intra-class correlation penalty of Learning Repeatable Speech Embeddings. Intra-class correlation (ICC) is the fraction of embedding variance that comes from differences between subjects rather than repeated measurements of the same subject. The speech paper used it to stabilize voice embeddings across recording conditions; we apply it to repeated measurements of a lesion.
Research Program
The unrolled strip. Given a lesion mask, we extract its outer contour $c(\theta)$, parameterized by normalized arc length $\theta \in [0,1)$, with outward unit normal $n(\theta)$. The strip is
$$S(\theta, d) = I\big(c(\theta) + d\, n(\theta)\big), \qquad d \in [-D_{in}, D_{out}],$$
where $I$ is the image. $D_{in}$ and $D_{out}$ are depths inside and outside the boundary, set as fractions of the lesion's equivalent radius so the strip scales with the lesion. The contour is resampled to a fixed length $L$, for example 256 points. Each position then carries a vector of channels: the strip intensities at about 16 depths, local boundary curvature, and radial distance to the centroid normalized by mean radius. The result is a channels-by-$L$ array, analogous to the $4 \times L$ one-hot DNA matrix. Contours are smoothed lightly before taking normals so mask staircase artifacts do not dominate curvature.
The motif scanner. The scanner is two or three layers of circular 1D convolution, so there is no artificial start or end of the contour. Filter widths span roughly 2% to 15% of the perimeter, chosen to cover the scale of spicules and micro-lobulations. Global max pooling and mean pooling make the output independent of where the contour starting point falls and of lesion rotation. A small head produces a malignancy score.
Interpretation follows the genomics recipe. For each filter we collect the strip segments that activate it most strongly and align them into an average "margin logo." We then measure how each filter's activation correlates with the handcrafted compactness and sharpness scores. The question is whether some filters are redundant with those scores and others capture something they miss.
Repeatability penalty. True repeat scans across hospitals are not available, so for each training lesion we generate $K$ views of the same lesion. Views vary the mask (dilation, erosion, boundary jitter, and masks from a held-out segmenter) and the acquisition (speckle, gain, blur, resampling). For each embedding dimension, $\mathrm{ICC} = \sigma_b^2/(\sigma_b^2 + \sigma_w^2)$, where $\sigma_b^2$ is variance across lesions and $\sigma_w^2$ is variance across views of the same lesion. We add $\lambda(1 - \overline{\mathrm{ICC}})$ to the classification loss, following the speech formulation. Whether this penalty beats plain augmentation is an ablation, not an assumption.
Fusion. Fusion is a late concatenation of margin-motif embeddings with mask-pooled encoder latents, followed by the same small head. Its purpose is to test complementarity.
Baselines
The naive reference points are the two numbers reported by the lesion-centric paper on external BUS-BRA (Lesion-Centric Latent Phenotypes). Handcrafted radiomics with a classical classifier reached AUC 0.774, and a standard image CNN trained end-to-end reached 0.852. We re-run both with the same training split (BUSI and BUS-UCLM) and the same hyperparameter search budget as our model. Our reproductions must land near the reported values before any comparison is trusted. Matching or beating 0.852 with the margin model alone is the minimum bar for the representation to be worth anything.
The strongest existing method is mask-weighted pooling of segmentation-encoder latents with target bottleneck calibration, reported at AUC 0.982 on BUS-BRA in the same paper. We reimplement it on the same encoder backbone that produces our segmentation masks, so the two methods see identical masks and identical pretraining. Each gets the same number of tuning trials. We evaluate it in four conditions, crossing expert versus predicted masks with and without target calibration. Beating it means one of two things. Either the margin model's AUC drop from (expert mask, calibrated) to (predicted mask, uncalibrated) is significantly smaller than the MWP model's drop, by paired bootstrap over BUS-BRA lesions. Or fusion significantly exceeds MWP alone in the uncalibrated predicted-mask condition. We do not claim to beat 0.982 in its own setting.
Three ablations isolate the key ingredients. A 2D CNN on the same unrolled strip tests whether the 1D formulation matters or only the unrolling does. A version that sees only curvature and radius, with no intensity strip, tests whether the outward context matters. A "shuffled contour" control cuts the sequence into blocks and permutes them before training and testing. Permuting preserves global statistics but destroys local order, so if it performs as well, the filters are not reading motifs at all. Finally, the ICC penalty is compared against the same view augmentation without the penalty, at equal compute.
Why not just…?
Why not just compute classical contour descriptors, such as Fourier coefficients of the radial profile, and train a gradient-boosted classifier? This is the strongest cheap alternative. The stroke study above shows that well-tuned radiomics can sit close to deep features externally. We include Fourier and curvature-histogram descriptors computed from the same contours as a baseline; no reported result was found on Lacuna for this on BUS-BRA. If they match the motif scanner both in external AUC and in robustness to predicted masks, then the motif scanner adds nothing over global contour statistics. We would report that and keep only the strip-context finding.
Why not just run a 2D CNN on a thin ring around the mask, without unrolling? A ring keeps the margin and some outside tissue but leaves lesion orientation, size, and position in image coordinates, so the network must learn those invariances from limited data. Our 2D-on-strip ablation separates the two effects. A ring CNN on the original image is a third arm. If the ring CNN equals the unrolled model under site shift, coordinate standardization is not the active ingredient and the claim is wrong.
Why not just pool more sites and skip the repeatability penalty? Pooling clearly helps in large multinational studies (Harmon et al.). With only two small training sites, however, pooling cannot cover the external site's variation. The speech results suggest an explicit penalty adds about a 10% relative error reduction beyond what training alone achieves. We test this directly by training with and without the penalty under identical augmentation. We also run a leave-one-source-out variant (train on BUSI only, test on BUS-UCLM and BUS-BRA) to see whether the penalty's benefit grows as site diversity shrinks. That is the regime where it should matter.
Why not just use the 0.982 method as is? In the ideal setting it is hard to beat, and we say so. The open question is its behavior with predicted masks and no target labels, which is how a new hospital would deploy it. That condition is the experiment.
Proposed Experiments
Primary experiment. We train on BUSI (780 images) and BUS-UCLM (683), excluding normal images, and test once on BUS-BRA (1,875). Predicted masks come from a segmenter trained only on the source sites. The decisive check is the four-condition robustness grid described above, reported with bootstrap confidence intervals and DeLong tests on paired predictions. We split by patient wherever identifiers allow, to avoid leakage between near-duplicate images.
Mask-quality curve. We plot external AUC as a function of controlled mask degradation, measured by Dice overlap with the expert mask (from about 0.95 down to 0.7), for every method. Margin features could plausibly be more fragile to mask error than averaging, since the boundary is their anchor. This curve tests that risk directly. The strip's inward and outward depth is our hedge against it.
Interpretability check. We count how many learned filters are well explained by compactness and sharpness and how many are not. For the latter, we look at whether their margin logos look like recognizable patterns such as lobulation or angular spikes. This is also where we check whether the discordant smooth-but-malignant cases highlighted by the lesion-centric paper are the ones the motif filters recover.
Secondary single-source check. We apply the same pipeline to LIDC-IDRI nodules to test whether it transfers beyond ultrasound. Because LIDC-IDRI is single-source, this check speaks only to accuracy, not cross-site robustness. There the reference is SISC's discovery-radiomics result, accuracy 89.36% and AUC 96.01% on Dataset I (SISC).
References
- Deep learning in bioinformatics: introduction, application, and perspective in big data era
- MUST-CNN: A Multilayer Shift-and-Stitch Deep Convolutional Architecture for Sequence-Based Protein Structure Prediction
- DeepSF: Deep Convolutional Neural Network for Mapping Protein Sequences to Folds
- Classification and specific primer design for accurate detection of SARS-CoV-2 using deep learning
- Exploring Deep Neural Network Architectures: A Case Study on Improving Antimicrobial Peptide Recognition
- PEER: A Comprehensive and Multi-Task Benchmark for Protein Sequence Understanding
- The Role of Pleura and Adipose in Lung Ultrasound AI
- Lesion-Centric Latent Phenotypes from Segmentation Encoders for Breast Ultrasound Interpretability
- Computed tomography–based COVID–19 triage through a deep neural network using mask–weighted global average pooling
- Comparing Handcrafted Radiomics Versus Latent Deep Learning Features of Admission Head CT for Hemorrhagic Stroke Outcome Prediction
- Learning Repeatable Speech Embeddings Using An Intra-class Correlation Regularizer
- Artificial intelligence for the detection of COVID-19 pneumonia on chest CT using multinational datasets
- SISC: End-to-End Interpretable Discovery Radiomics-Driven Lung Cancer Prediction via Stacked Interpretable Sequencing Cells