# SAM: Self-supervised Learning of Pixel-wise Anatomical Embeddings in Radiological Images

SAM: 방사선 영상에서 픽셀 단위 해부학적 임베딩의 자기지도 학습

Ke Yan, Jinzheng Cai, Dakai Jin, Shun Miao, Dazhou Guo, Adam P. Harrison 외 4명 · arXiv · 2020년 12월 4일

- **연구 문제** 레이블 없는 방사선 영상에서 픽셀 단위 해부학적 임베딩을 학습하여, 한 장의 레이블된 템플릿 점을 다른 영상에서 최근접 이웃 검색으로 찾는 방법을 다룹니다.
- **연구 방법** SAM은 무작위로 자른 두 3D 패치의 겹친 영역에서 양성 픽셀 쌍을 만들고, 전역과 지역 임베딩을 coarse-to-fine 구조로 학습하며, 어렵고 다양한 음성 샘플링과 InfoNCE 손실을 사용합니다.
- **주요 결과** ChestCT 19개 랜드마크 검출에서 SAM은 MRE 4.3±3.0(CE)과 4.5±3.0(NC)을 보고했고 추론에 0.23초가 걸렸습니다. DeepLesion 병변 매칭에서는 정확도 91.1%를 보고했습니다.

## 연구 문제: 레이블 없이 해부학적 위치를 찾기

의료 영상 분석에서는 CT나 X-ray에서 같은 해부학적 구조를 여러 영상에 걸쳐 안정적으로 찾는 일이 자주 필요합니다. 기존에는 랜드마크 검출이나 의미 분할을 사용할 수 있지만, 이들은 찾고자 하는 구조와 하위 구조마다 많은 레이블 데이터가 필요합니다. 이 논문은 레이블 없는 방사선 영상에서 구조적 일관성을 학습하여, 특정 구조에 대한 별도 학습 없이도 임의의 관심 지점을 찾을 수 있는지를 질문합니다.

이 연구는 픽셀마다 해부학적 위치나 신체 부위를 설명하는 임베딩을 자기지도 방식으로 학습하는 SAM을 제안합니다. 같은 신체 부위를 가리키는 픽셀은 서로 비슷한 임베딩을 갖고, 템플릿 영상에서 표시한 점은 다른 영상에서 최근접 이웃 검색으로 찾을 수 있습니다.

## 방법: 패치 쌍과 픽셀 대조 학습

학습 시점에는 레이블 없는 CT 볼륨에서 무작위 위치와 크기로 두 개의 3D 패치를 잘라 같은 크기로 맞춥니다. 두 패치가 겹치면 겹친 영역에서 같은 해부학적 위치를 가리키는 픽셀 쌍을 양성 쌍으로 삼고, 다른 위치의 픽셀을 음성으로 사용합니다. 음성 픽셀은 패치 중심과 무관하게 샘플링하되, 양성 픽셀과의 거리가 δ보다 커야 합니다(CT에서 3mm, X-ray에서 5픽셀).

![Figure 2: The learning process of SAM. We first do random data augmentation to an unlabeled image, then send the two transformed patches to a network to genera…](https://refivu.com/papers/b686c856-c0a0-462a-9a5f-8b71535eb2f6/figures/figure-cb9cd456816eaa9c5dc2ebc3a00d38eb.png?thumb=512)

**Fig. 2** : The learning process of SAM. We first do random data augmentation to an unlabeled image, then send the two transformed patches to a network to generate a global and a local embedding vector for each pixel (Sec. III-A). One embedding channel of an axial image slice is visualized in the figure with the global embedding zoomed in. Next, we use a global and a local InfoNCE loss \[23\] to encourage matched pixels (positive pairs) to have similar embeddings, while push unmatched ones (negative pixels) apart (Sec. III-B). The negative pixels are random pixels in the two patches guided by hard and diverse sample selection strategies (Sec. III-C).

[원문](https://arxiv.org/abs/2012.02383v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Yan, Jinzheng Cai, Dakai Jin, Shun Miao, Dazhou Guo, Adam P. Harrison, Youbao Tang, Jing Xiao, Jingjing Lu, Le Lu · SAM: Self-supervised Learning of Pixel-wise Anatomical Embeddings in Radiological Images · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

네트워크는 coarse-to-fine 구조입니다. 3D ResNet-18을 FPN과 결합하고, 가장 거친 FPN 특징으로 전역 임베딩을, 가장 세밀한 특징으로 지역 임베딩을 각각 3×3×3 합성곱과 L2 정규화로 만듭니다. 전역 임베딩은 신체 부위를 거친 스케일에서 구별하고, 지역 임베딩은 인접한 유사 구조를 구별하도록 설계되었습니다. 저자들은 가장 거친 FPN 특징과 그 상위 수준의 연결을 끊어 두 임베딩이 더 독립적이 되도록 했습니다.

손실은 InfoNCE 형태입니다. 앵커 임베딩 fi와 양성 임베딩 f′i의 내적을 온도 τ=0.5로 나눈 값을 음성 임베딩과의 내적과 비교하며, 양성 쌍은 가깝게, 음성 픽셀은 멀게 만듭니다. 전역과 지역 임베딩 각각에 이 손실을 적용하고 두 손실을 더합니다.

## 음성 샘플링과 추론 시의 점 매칭

전역 임베딩의 음성은 온라인 어려운 음성 선택으로 고르고, 여기에 같은 배치의 다른 영상에서 무작위로 뽑은 픽셀을 더합니다. 다른 영상의 픽셀은 같은 해부학적 위치일 가능성이 낮으므로 다양한 신체 부위를 음성에 포함시키는 역할을 합니다. 지역 임베딩의 음성은 전역 유사도 지도와 지역 유사도 지도를 합친 값에서 가장 어려운 후보를 고르고, 그중 상위 n\_lcand개 후보에서 무작위로 n\_neg개를 샘플링합니다.

추론 시에는 템플릿 영상에서 표시한 점의 앵커 임베딩과 쿼리 영상 임베딩 사이의 코사인 유사도 지도를 합성곱으로 계산합니다. 임베딩을 L2 정규화했기 때문에 이 계산은 코사인 유사도와 같습니다. 이후 Sg와 Sl을 같은 크기로 업샘플링하여 더한 지도의 최댓값 위치를 대응점으로 찾습니다.

![Figure 9: Random anatomical point matching results. We randomly select an anatomical point in a template CT image, and then use SAM to find its matched point i…](https://refivu.com/papers/b686c856-c0a0-462a-9a5f-8b71535eb2f6/figures/figure-a4821a5fe81ff683629907e3dc2384d0.png?thumb=512)

**Fig. 9** : Random anatomical point matching results. We randomly select an anatomical point in a template CT image, and then use SAM to find its matched point in a query image from another patient. The template image, query image, global similarity map, and local similarity map are displayed in each row. The red points are selected points in template images or detected points in query images and similarity maps. The views (axial, coronal, sagittal) in each row were selected in order to clearly show the point. (a) Right edge of sternum, (b) left spinal extensors, (c) right hepatic vein, (d) cauda pancreatis, (e) bottom of right kidney, (f) left multifidus muscle, and (g) center of abdomen.

[원문](https://arxiv.org/abs/2012.02383v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Yan, Jinzheng Cai, Dakai Jin, Shun Miao, Dazhou Guo, Adam P. Harrison, Youbao Tang, Jing Xiao, Jingjing Lu, Le Lu · SAM: Self-supervised Learning of Pixel-wise Anatomical Embeddings in Radiological Images · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 검증: ChestCT 랜드마크 검출과 병변 매칭

ChestCT 실험에서 SAM은 19개 랜드마크를 하나의 템플릿 영상으로 찾았습니다. 이 실험의 템플릿은 평균 정규화 랜드마크에 가장 가까운 학습 샘플로 선택되었습니다. 데이터는 94명의 환자로 구성되었고 65명 학습, 10명 검증, 19명 테스트로 나뉘었습니다. 평균 방사 오차(MRE)에서 SAM은 조영 CT(CE)에서 4.3±3.0, 비조영 CT(NC)에서 4.5±3.0을 기록했습니다. 같은 표의 Affine, FFD, SyN, DEEDS, VoxelMorph 등 정합 기반 방법보다 낮은 오차였고, 추론 시간은 0.23초였습니다. 지도 학습 기반 SCN은 2.6±2.2로 더 낮았지만 이는 완전 지도 학습 상한으로 함께 제시된 결과입니다.

![Figure 10: 3D landmark detection results in chestCT using different methods. The mean radial error \[8\] of each method is also shown. Columns 3 to 5 present reg…](https://refivu.com/papers/b686c856-c0a0-462a-9a5f-8b71535eb2f6/figures/figure-d27d4df0dc7814f84632acae23d866a5.png?thumb=512)

**Fig. 10** : 3D landmark detection results in chestCT using different methods. The mean radial error \[8\] of each method is also shown. Columns 3 to 5 present registered/deformed template images according to the query one using FFD \[11\], SyN \[9\], and DEEDs \[10\], respectively. Larger appearance inconsistency between the registered image and the query one typically indicates larger landmark detection errors. (a) shows an example for detecting the top of right lung, where lungs in the template image are larger than those in the query one. Although most methods performed well to detect the lung top, registration based methods present obvious deformation errors near the lung bottom, especially for FFD and SyN. (b) and (c) show examples of detecting the anterior of aorta arch and bottom of internal jugular vein. The query images are quite different from the template in body pose (b) and shape (c), and registration methods exhibit large deformation error near aorta arc (b) and anterior of chest wall (c). (d) presents a case that the template and query images have different thyroid sizes, where SAM is able to provide more accurate localization. (e) shows an example where the registration methods could not perform well due to the large difference between the template image and the query one, while SAM directly matched the landmark with higher accuracy.

[원문](https://arxiv.org/abs/2012.02383v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Yan, Jinzheng Cai, Dakai Jin, Shun Miao, Dazhou Guo, Adam P. Harrison, Youbao Tang, Jing Xiao, Jingjing Lu, Le Lu · SAM: Self-supervised Learning of Pixel-wise Anatomical Embeddings in Radiological Images · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

DeepLesion 병변 매칭에서는 3,556개 병변 쌍을 평가했습니다. 매칭점이 템플릿 병변의 3D 경계 상자 안에 들어오면 정답으로 계산되었고, SAM의 정확도는 91.1%였습니다. 비교 표에서 Lesion emb.는 80.7%, LesaNet과 DLT는 82.1%입니다. 이 점수들은 서로 다른 저자의 방법이며, 각 방법의 학습 조건과 세부 프로토콜은 원문 표에 따른 비교로 읽어야 합니다.

![Figure 11: Examples of lesion matching results of SAM on DeepLesion. Green circles mark the lesion’s central point in the template scan and the detected points…](https://refivu.com/papers/b686c856-c0a0-462a-9a5f-8b71535eb2f6/figures/figure-1d07c73ce126c7234140fc3252cb65e9.png?thumb=512)

**Fig. 11** : Examples of lesion matching results of SAM on DeepLesion. Green circles mark the lesion’s central point in the template scan and the detected points in follow-up scans. The predicted similarity scores are also shown. Follow-up 2 of group (b) are from CT volumes that do not include the lesion region of the template, so SAM matched unrelated points with a low score. Group (f) shows an example of using a lesion annotation from a follow-up scan as template to match lesions in earlier scans. It can help radiologists to check if the lesion has been missed in the earlier scan.

[원문](https://arxiv.org/abs/2012.02383v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Yan, Jinzheng Cai, Dakai Jin, Shun Miao, Dazhou Guo, Adam P. Harrison, Youbao Tang, Jing Xiao, Jingjing Lu, Le Lu · SAM: Self-supervised Learning of Pixel-wise Anatomical Embeddings in Radiological Images · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

## 제한과 적용 범위

X-ray 실험에서 SAM은 한 장의 템플릿으로 손 X-ray와 골반 X-ray에서 평가되었습니다. 손 데이터에서 SAM의 MRE는 13.1±32.3이고 골반에서는 32.2±26.2입니다. 이 값은 HRNet-50이나 DAG-5와 평균 오차를 비교하는 맥락에서 읽어야 하며, 표준편차가 큰 이유는 소수의 잘못 매칭된 이상치와 큰 X-ray 영상 크기에서 나온다고 저자들은 설명합니다.

원문은 심한 병리적 변형으로 템플릿과 크게 다른 X-ray에서 실패 사례가 있다고 보고합니다. 또한 CT에서 튜브 모양의 대동맥처럼 z축 방향으로 구별되는 질감이 부족한 경우 검출이 어긋난 사례가 제시되었습니다. 따라서 SAM의 성능은 학습 데이터와 템플릿이 공유하는 구조에 의존하며, 모든 해부학적 변형에 대해 보장된다고 읽으면 안 됩니다.

## 논문 정보

- **저자**: Ke Yan, Jinzheng Cai, Dakai Jin, Shun Miao, Dazhou Guo, Adam P. Harrison, Youbao Tang, Jing Xiao, Jingjing Lu, Le Lu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 12월 4일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 10월 21일
- **버전**: v3
- **arXiv**: 2012.02383
- **분류**: cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2012.02383v3) · [원문 PDF ↗](https://arxiv.org/pdf/2012.02383v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Radiological images such as computed tomography (CT) and X-rays render anatomy with intrinsic structures. Being able to reliably locate the same anatomical structure across varying images is a fundamental task in medical image analysis. In principle it is possible to use landmark detection or semantic segmentation for this task, but to work well these require large numbers of labeled data for each anatomical structure and sub-structure of interest. A more universal approach would learn the intrinsic structure from unlabeled images. We introduce such an approach, called Self-supervised Anatomical eMbedding (SAM). SAM generates semantic embeddings for each image pixel that describes its anatomical location or body part. To produce such embeddings, we propose a pixel-level contrastive learning framework. A coarse-to-fine strategy ensures both global and local anatomical information are encoded. Negative sample selection strategies are designed to enhance the embedding's discriminability. Using SAM, one can label any point of interest on a template image and then locate the same body part in other images by simple nearest neighbor searching. We demonstrate the effectiveness of SAM in multiple tasks with 2D and 3D image modalities. On a chest CT dataset with 19 landmarks, SAM outperforms widely-used registration algorithms while only taking 0.23 seconds for inference. On two X-ray datasets, SAM, with only one labeled template image, surpasses supervised methods trained on 50 labeled images. We also apply SAM on whole-body follow-up lesion matching in CT and obtain an accuracy of 91%. SAM can also be applied for improving image registration and initializing CNN weights.

## 원문 인용

Ke Yan, Jinzheng Cai, Dakai Jin, Shun Miao, Dazhou Guo, Adam P. Harrison, Youbao Tang, Jing Xiao, Jingjing Lu, Le Lu (2020). SAM: Self-supervised Learning of Pixel-wise Anatomical Embeddings in Radiological Images. arXiv:2012.02383v3. https://arxiv.org/abs/2012.02383v3

**BibTeX**

```
@misc{yan2020self,
  title = {{SAM: Self-supervised Learning of Pixel-wise Anatomical Embeddings in Radiological Images}},
  author = {Ke Yan and Jinzheng Cai and Dakai Jin and Shun Miao and Dazhou Guo and Adam P. Harrison and Youbao Tang and Jing Xiao and Jingjing Lu and Le Lu},
  year = {2020},
  eprint = {2012.02383},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.02383v3}
}
```

## 이 논문의 용어

- [Feature Pyramid Network](https://refivu.com/terms/f5b902e34e57-feature-pyramid-network)
- [InfoNCE loss](https://refivu.com/terms/eab7554fe65f-infonce-loss)
- [SAM](https://refivu.com/terms/702df428b8a1-sam)
- [DeepLesion](https://refivu.com/terms/eac4612eb0f2-deeplesion)
- [global embedding](https://refivu.com/terms/8f43d54dad54-global-embedding)
- [InfoNCE 손실](https://refivu.com/terms/a17fbf96d962-infonce)
- [positive pair](https://refivu.com/terms/f754d234c95d-positive-pair)

## 다른 논문 해설

- [FANet: A Feedback Attention Network for Improved Biomedical Image Segmentation](https://refivu.com/papers/aebab0c4-9294-45bd-b442-2a4051e07c5c-fanet-a-feedback-attention-network-for-improved-biomedical.md)
- [CenterNet++ for Object Detection](https://refivu.com/papers/5d0dc393-3d29-4ecf-8de8-ff1d181dd980-centernet-for-object-detection.md)
- [Efficient Annotation and Learning for 3D Hand Pose Estimation: A Survey](https://refivu.com/papers/a1888912-84fd-497f-b4b6-edc83183bc5b-efficient-annotation-and-learning-for-3d-hand-pose.md)
- [Time-Ordered Recent Event (TORE) Volumes for Event Cameras](https://refivu.com/papers/b3e578ee-aa47-4822-8eb7-dcd45898d20a-time-ordered-recent-event-tore-volumes-for-event.md)
- [WINNet: Wavelet-inspired Invertible Network for Image Denoising](https://refivu.com/papers/0fd7b132-2e64-4862-9b60-ed78a3c4a2cd-winnet-wavelet-inspired-invertible-network-for-image.md)
- [Detecting and Tracking Small and Dense Moving Objects in Satellite Videos: A Benchmark](https://refivu.com/papers/c3964ca6-e664-4fe0-9145-2339ceb20411-detecting-and-tracking-small-and-dense-moving-objects.md)
- [Robust Output Regulation and Reinforcement Learning-based Output Tracking Design for Unknown Linear Discrete-Time Systems](https://refivu.com/papers/c891cf57-5ab7-49b3-8678-176cfd88db96-robust-output-regulation-and-reinforcement-learning-based.md)
- [A Deep Multi-Level Attentive network for Multimodal Sentiment Analysis](https://refivu.com/papers/659ce8fe-da2a-489f-8506-27c143cb7130-a-deep-multi-level-attentive-network-for-multimodal.md)
- [AcroMonk: A Minimalist Underactuated Brachiating Robot](https://refivu.com/papers/e108ee8b-7d8d-4bf6-b2dd-ee4ae51d5b80-acromonk-a-minimalist-underactuated-brachiating-robot.md)
- [Hybrid Reinforcement Learning for STAR-RISs: A Coupled Phase-Shift Model Based Beamformer](https://refivu.com/papers/e6d90f1b-a6bd-45cf-b7ba-aec5f0948ff6-hybrid-reinforcement-learning-for-star-riss-a-coupled.md)
- [Planning with Learned Entity Prompts for Abstractive Summarization](https://refivu.com/papers/03f29640-657b-4a30-9366-00308b28c2c8-planning-with-learned-entity-prompts-for-abstractive.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/b686c856-c0a0-462a-9a5f-8b71535eb2f6-sam-self-supervised-learning-of-pixel-wise-anatomical)
