# Classification of cancer pathology reports: a large-scale comparative study

암 병리 보고서의 분류: 대규모 비교 연구

Stefano Martina, Leonardo Ventura, Paolo Frasconi · arXiv · 2020년 6월 29일

- **연구 문제** 토스카나 암 등록처의 이탈리아어 자유 텍스트 병리 보고서에 ICD-O3 부위와 형태 코드를 자동 할당하는 문제를 다룹니다.
- **연구 방법** 단어 벡터와 GRU 기반 인코더 위에서 집계 방식을 평면 및 계층 구조로 비교하고, 해석 가능한 MAX 변형으로 단어별 근거를 제시합니다.
- **주요 결과** MAX는 토포그래피 정확도 90.3%, ATT는 형태 정확도 84.8%를 기록했으며, 계층 모델은 평면 모델보다 낫지 않았습니다.

## 연구 문제와 배경

이 논문은 이탈리아 토스카나 지역 암 등록처의 자유 텍스트 병리 보고서에 ICD-O3 부위(topography) 코드와 형태(morphology) 코드를 자동으로 할당하는 문제를 다룹니다. 병리 보고서는 구조화되지 않은 이탈리아어 자유 텍스트로 작성되며, 등록처에서는 이를 사람이 수동으로 검토하는 과정이 필요해 데이터 생산과 공개가 지연될 수 있습니다. 저자들은 이 지연을 줄이기 위해 자동 분류가 필요하다고 설명합니다.

선행 연구는 규칙 기반 시스템이나 bag-of-words 표현과 선형 분류기에 머물렀거나, 딥러닝을 적용하더라도 작은 데이터셋이나 일부 종양에 국한되는 경우가 많았습니다. 이 논문은 80,000건 이상의 라벨 데이터와 150만 건 이상의 미표지 보고서를 사용해 61개 부위 클래스와 134개 형태 클래스를 대상으로 여러 딥러닝 구조를 비교합니다.

## 데이터 구성과 분할

연구진은 토스카나 지역 종양 등록처에서 수집한 병리 검사 기록 1,592,385건을 사용했습니다. 이 중 약 6%가 양성 종양 진단과 ICD-O3 라벨을 가졌고, 중복 환자 보고서 정리 후 94,524건의 라벨 보고서가 남았습니다. 세 개의 자유 텍스트 필드를 하나의 문서로 합치고 대문자로 변환했으며, 중복 텍스트와 극히 드문 코드의 보고서를 제거해 최종 85,170건의 학습용 레코드를 구성했습니다.

분할은 무작위가 아니라 레코드 삽입 날짜 기준의 시간 분할입니다. 가장 최근 20%를 테스트 세트로 두었고, 그다음 최근 자료를 검증 세트로, 나머지를 학습 세트로 사용했습니다. 테스트 세트 클래스는 최소 5건 이상으로 제한했기 때문에 부위 61개와 형태 134개 클래스만 평가에 포함됩니다. 이 설계는 문체 변화나 지식 변화에 따른 데이터 이동을 고려하기 위한 선택으로 설명됩니다.

## 모델 구조와 집계 방식

기본 모델은 단어 임베딩을 양방향 GRU에 넣어 각 위치의 은닉 표현을 만든 뒤, 이를 contextualized 표현 u\_t로 바꾸고 집계 함수 A로 문서 표현 하나를 만드는 구조입니다. 집계 방식은 세 가지로 비교됩니다. 첫째는 양 끝 은닉 표현을 이어 붙이는 GRU 방식, 둘째는 주의 가중치 합을 쓰는 ATT 방식, 셋째는 시간축에 대해 각 특성의 최댓값을 취하는 MAX 방식입니다. MAX는 여러 위치 중 한 위치라도 양성이면 그 특성이 활성화되는 multi-instance 학습 관점으로 설명됩니다.

해석 가능 모델 MAXi는 같은 구조에서 출력 차원을 클래스 수와 같게 두어, 각 클래스 j에 대해 위치 t별 중요도 u\_{j,t}를 얻는 방식입니다. 저자들은 주의 집계로 해석을 시도했으나 만족스럽지 않아 MAX 집계 기반 MAXi만 보고했습니다. 계층 모델 MAXh와 ATTh는 문장 단위로 먼저 집계한 뒤 문서 단위 집계를 수행하는 구조입니다.

## 비교 기준선과 학습 설정

비교 기준선으로 bag-of-words 기반 SVM, pre-training 단어 벡터를 쓰는 CNN, 그리고 BERT가 포함됩니다. CNN은 문장 분류 구조를 바탕으로 하되 단어 벡터 뒤에 선형층을 추가한 변형입니다. BERT는 150만 건의 미표지 레코드로 사전학습한 뒤 토포그래피와 형태 과제에 맞게 미세조정되었습니다.

딥 모델은 categorical cross-entropy 손실과 Adam을 사용했고, 초기 학습률은 0.001, 미니배치는 32였습니다. 나머지 하이퍼파라미터는 검증 정확도를 목적으로 그리드 탐색했습니다. 단어 벡터는 GloVe로 학습되었으며 최적 설정은 벡터 차원 60, 윈도우 크기 15, 반복 50회로 보고되었습니다. 다만 이 값은 GloVe 단어 벡터 학습 설정이며, 모델별 구조 탐색 공간과는 구분해서 읽어야 합니다.

## 토포그래피와 형태 예측 결과

토포그래피 61개 클래스 예측에서 MAX는 정확도 90.3%, top-3 정확도 96.6%, top-5 정확도 98.1%, macro F1 61.9를 기록했습니다. ATT는 정확도 90.1%로 MAX보다 약간 낮았습니다. 형태 134개 클래스 예측에서는 ATT가 정확도 84.8%로 가장 높았고, MAX는 84.6%였습니다. 따라서 정확도 기준으로 토포그래피에서는 MAX가, 형태에서는 ATT가 가장 높게 보고되었습니다.

같은 표에서 SVM은 토포그래피 정확도 89.7%, 형태 정확도 82.4%였습니다. 저자들은 bag-of-words 기준선 대비 딥러닝 이득이 크지 않다는 점을 강조하며, 두 과제의 차이를 과제 구성과 클래스 분포의 차이로 해석합니다. 이 점수는 단일 데이터셋과 시간 분할 조건에서의 결과이며 다른 암 등록 데이터로 일반화된 결과가 아닙니다.

![Figure 4: Class distributions for topography (left) and morphology (right)](https://refivu.com/papers/9320e08e-623a-4132-b2c0-f6d76ac0eda2/figures/figure-80d02b856e5d50b237e9c52d795542f0.png?thumb=512)

**Fig. 4** . Class distributions for topography (left) and morphology (right)

[원문](https://arxiv.org/abs/2006.16370v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Stefano Martina, Leonardo Ventura, Paolo Frasconi · Classification of cancer pathology reports: a large-scale comparative study · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 계층 모델과 집계 방식의 비교

계층 구조가 문장 정보를 추가로 활용할지 확인하기 위해 MAXh와 ATTh를 각각 MAX와 ATT에 대응시켰습니다. 토포그래피에서 MAXh는 정확도 89.9%, ATTh는 89.9%로 평면 모델 MAX의 90.3%와 ATT의 90.1%보다 낮았습니다. 형태에서도 MAXh 83.7%, ATTh 83.7%로 MAX 84.6%와 ATT 84.8%보다 낮았습니다.

저자들은 이 결과를 평면 모델이 계층 모델보다 낫지 않다는 근거로 제시합니다. 또한 평균 문장 수가 적어 계층 구조가 활용할 구조 정보가 부족했을 가능성을 해석으로 덧붙입니다. 이 해석은 저자의 설명이며, 같은 데이터에서 계층 구조가 구조적으로 불가능하다는 증명은 아닙니다.

![Figure 3: Distribution of the number of sentences per document (left) and the number of words per sentence (right)](https://refivu.com/papers/9320e08e-623a-4132-b2c0-f6d76ac0eda2/figures/figure-53bdd39c27826b774a76879588bf5df3.png?thumb=512)

**Fig. 3** . Distribution of the number of sentences per document (left) and the number of words per sentence (right).

[원문](https://arxiv.org/abs/2006.16370v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Stefano Martina, Leonardo Ventura, Paolo Frasconi · Classification of cancer pathology reports: a large-scale comparative study · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 해석 가능 모델과 단어 중요도

MAXi는 클래스별 단어 중요도를 출력하며 예측 근거를 표시합니다. 원문 그림은 중요도가 0.8 이상이면 높음, 0.3 이상 0.8 미만이면 중간, 0.1 이상 0.3 미만이면 낮음으로 강조되는 방식을 보여 줍니다. 세 보고서의 예시에서 MAXi는 전립선 관련 단어, 직장과 항문 관련 표현, 흉막과 면역조직화학 결과를 각각 강조했습니다.

해석 가능 모델의 신뢰도를 보기 위해 MAXi와 MAX의 예측 클래스 일치도(fidelity)를 계산했습니다. 평균 일치도는 토포그래피 91.8%, 형태 78.3%였습니다. 또 MAXi가 고른 상위 k개 단어만으로 GRU를 다시 학습했을 때 정확도가 높게 유지되었다는 결과를 보고합니다. 이는 상위 단어에 정보가 많이 집중되어 있음을 시사하는 관찰이며, 모든 의료적 판단을 보장하는 증거는 아닙니다.

![Figure 2: Training of a plain GRU model on topography task on datasets created using MAXi to distill the most relevant k words](https://refivu.com/papers/9320e08e-623a-4132-b2c0-f6d76ac0eda2/figures/figure-dbdf060560ad5d820f00640c598a5676.png?thumb=512)

**Fig. 2** . Training of a plain GRU model on topography task on datasets created using MAXi to distill the most relevant k words.

[원문](https://arxiv.org/abs/2006.16370v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Stefano Martina, Leonardo Ventura, Paolo Frasconi · Classification of cancer pathology reports: a large-scale comparative study · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 희귀 클래스와 적용 범위

저자들은 희귀 클래스가 모든 방법에 여전히 어려운 과제라고 보고합니다. 토포그래피에서는 테스트 세트에서 100건 미만인 hard 클래스의 macro F1이 방법별로 크게 떨어졌고, 순환 신경망의 장점이 희귀 클래스에서 더 뚜렷했습니다. 형태에서는 BERT가 밀집 클래스에서 강했지만 희귀 클래스에서는 그렇지 않았습니다.

또한 결과는 특정 이탈리아어 데이터셋에 한정되며, 극히 드문 클래스는 평가에서 제외되었습니다. 따라서 다른 언어나 다른 등록처의 보고서에 같은 순위가 유지되는지는 이 논문만으로 확인되지 않습니다.

## 논문 정보

- **저자**: Stefano Martina, Leonardo Ventura, Paolo Frasconi
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 6월 29일
- **등록일**: 2026년 11월 6일
- **수정일**: 2020년 6월 29일
- **버전**: v1
- **arXiv**: 2006.16370
- **DOI**: 10.1109/jbhi.2020.3005016
- **분류**: cs.LG · cs.CL · eess.IV · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

We report about the application of state-of-the-art deep learning techniques to the automatic and interpretable assignment of ICD-O3 topography and morphology codes to free-text cancer reports. We present results on a large dataset (more than 80 000 labeled and 1 500 000 unlabeled anonymized reports written in Italian and collected from hospitals in Tuscany over more than a decade) and with a large number of classes (134 morphological classes and 61 topographical classes). We compare alternative architectures in terms of prediction accuracy and interpretability and show that our best model achieves a multiclass accuracy of 90.3% on topography site assignment and 84.8% on morphology type assignment. We found that in this context hierarchical models are not better than flat models and that an element-wise maximum aggregator is slightly better than attentive models on site classification. Moreover, the maximum aggregator offers a way to interpret the classification process.

## 원문 인용

Stefano Martina, Leonardo Ventura, Paolo Frasconi (2020). Classification of cancer pathology reports: a large-scale comparative study. arXiv:2006.16370v1. https://doi.org/10.1109/jbhi.2020.3005016

**BibTeX**

```
@article{martina2020classification,
  title = {{Classification of cancer pathology reports: a large-scale comparative study}},
  author = {Stefano Martina and Leonardo Ventura and Paolo Frasconi},
  year = {2020},
  eprint = {2006.16370},
  archivePrefix = {arXiv},
  doi = {10.1109/jbhi.2020.3005016},
  url = {https://arxiv.org/abs/2006.16370v1}
}
```

## 이 논문의 용어

- [BERT](https://refivu.com/terms/45b639a1d317-bert)
- [CNN](https://refivu.com/terms/06880f5198e6-cnn)
- [GRU](https://refivu.com/terms/911a73dfeb1f-gru)
- [GloVe](https://refivu.com/terms/8a6b3410f3dd-glove)
- [McNemar test](https://refivu.com/terms/c50ac853455f-mcnemar-test)
- [Macro F1](https://refivu.com/terms/508a11de13a9-macro-f1)
- [SVM](https://refivu.com/terms/790227edd68d-svm)
- [Fidelity](https://refivu.com/terms/a7e3120bb185-fidelity)
- [ATT](https://refivu.com/terms/fcb29bdb72d0-att)
- [Flair](https://refivu.com/terms/7c1e1af6cb51-flair)
- [Max](https://refivu.com/terms/be1b4c3b8e73-max)
- [multi-instance learning](https://refivu.com/terms/cb47ac66dfc5-multi-instance-learning)

## 다른 논문 해설

- [Identifying gender bias in blockbuster movies through the lens of machine learning](https://refivu.com/papers/4097ba53-4aa9-4a85-b327-76dd0bcbb5a3-identifying-gender-bias-in-blockbuster-movies-through-the.md)
- [SOLD: Sinhala Offensive Language Dataset](https://refivu.com/papers/83f4f4fe-68e5-4207-953c-ffae8debe41f-sold-sinhala-offensive-language-dataset.md)
- [Conditional Generation with a Question-Answering Blueprint](https://refivu.com/papers/630ecc69-4559-4892-89d4-1435ee09f5aa-conditional-generation-with-a-question-answering-blueprint.md)
- [Talk2Data: A Natural Language Interface for Exploratory Visual Analysis via Question Decomposition](https://refivu.com/papers/748715fb-a668-4ceb-96e7-49c78d31615d-talk2data-a-natural-language-interface-for-exploratory.md)
- [ParsiNLU: A Suite of Language Understanding Challenges for Persian](https://refivu.com/papers/24ba3426-e5ba-4f5a-a514-16a1d2b97f1e-parsinlu-a-suite-of-language-understanding-challenges-for.md)
- [Performance Evaluation of Sentiment Analysis on Text and Emoji Data Using End-to-End, Transfer Learning, Distributed and Explainable AI Models](https://refivu.com/papers/fe5e0f1b-f3c9-49a6-a176-984e558c6998-performance-evaluation-of-sentiment-analysis-on-text-and.md)
- [Retrieval-Augmented Generation-based Relation Extraction](https://refivu.com/papers/54e83a36-e227-4fb6-886c-0583af87a0ee-retrieval-augmented-generation-based-relation-extraction.md)
- [Improved Target-specific Stance Detection on Social Media Platforms by Delving into Conversation Threads](https://refivu.com/papers/cbf453ce-35bf-4b0c-bba2-e3a524701324-improved-target-specific-stance-detection-on-social-media.md)
- [Can Large Language Models Serve as Evaluators for Code Summarization?](https://refivu.com/papers/10f352fd-3b63-4f19-93d4-ce193b1737ff-can-large-language-models-serve-as-evaluators-for.md)
- [Digital Diagnostics: The Potential Of Large Language Models In Recognizing Symptoms Of Common Illnesses](https://refivu.com/papers/29d8629d-2bd3-4fa2-8205-bc39f85ebe7b-digital-diagnostics-the-potential-of-large-language-models.md)
- [Generating and Weighting Semantically Consistent Sample Pairs for Ultrasound Contrastive Learning](https://refivu.com/papers/84798899-953e-4ae6-868c-8e58721c5f25-generating-and-weighting-semantically-consistent-sample.md)
- [Multi-task Active Learning for Pre-trained Transformer-based Models](https://refivu.com/papers/a29ce80c-c416-4a90-b700-633f9298b593-multi-task-active-learning-for-pre-trained-transformer.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/9320e08e-623a-4132-b2c0-f6d76ac0eda2-classification-of-cancer-pathology-reports-a-large-scale)
