Towards Semi-Structured Automatic ICD Coding via Tree-based Contrastive Learning

Automatic coding of International Classification of Diseases (ICD) is a multi-label text categorization task that involves extracting disease or procedure codes from clinical notes. Despite the application of state-of-the-art natural language processing (NLP) techniques, there are still challenges including limited availability of data due to privacy constraints and the high variability of clinical notes caused by different writing habits of medical professionals and various pathological features of patients. In this work, we investigate the semi-structured nature of clinical notes and propose an automatic algorithm to segment them into sections. To address the variability issues in existing ICD coding models with limited data, we introduce a contrastive pre-training approach on sections using a soft multi-label similarity metric based on tree edit distance. Additionally, we design a masked section training strategy to enable ICD coding models to locate sections related to ICD codes. Extensive experimental results demonstrate that our proposed training strategies effectively enhance the performance of existing ICD coding methods.

Paper

References (33)

Scroll for more · 21 remaining

Similar papers

Peer review

Reviewer BZWL6/10 · confidence 4/52023-07-05

Summary

This paper addresses automating diagnosis coding via tree-based contrastive learning. It uses an established benchmarking dataset for this task, and achieves insightful results from its comparative performance evaluations and ablation studies.

Strengths

This paper addresses automating diagnosis coding via tree-based contrastive learning. It uses an established benchmarking dataset for this task, and achieves insightful results from its comparative performance evaluations and ablation studies. It has a well chosen range of machine learning methods to compare in the coding task, and its methods are very clearly and thoroughly described.

Weaknesses

The paper is somewhat lacking in its qualitative analysis. It would be helpful to extend Section 5 with a mixed method approach to analyse and evaluate the experimental methods also using qualitative approaches. The paper is also calling for a discussion section to deepen the lessons learnt part of the study. For example, what are the limitations of the study? What are the envisioned pros and cons of the studied methods in their broader context in health and medicine? What are the ethical considerations related to using the MIMIC -III dataset? It would have been helpful to connect this natural language processing paper to prior shared tasks and their shared datasets to allow seeing trends in methods. E.g., Computational Medicine Center's 2007 Medical NLP Challenge, followed by those by I2B2, N2C2, and CLEF eHealth would be worth of briefly surveying to assure that methods are compared to more traditional ones as well.

Questions

See above

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

See my broader impact and ethical consideration comments above for minor comments

Reviewer cSeG6/10 · confidence 3/52023-07-06

Summary

This paper describes a novel method of ICD coding that explicitly model clinical note sections. Instead of treating a clinical note as a long sequence of tokens, the authors propose to segment a clinical note into sections and then use contrasive learning to pre-train the model. Experiment results on MIMIC-III show that the proposed components can be used to improve the effectiveness of several existing CNN, RNN, Transformer-based models, especially when the training data is limited.

Strengths

* A simple yet effective contrastive learning variant based on label tree * The proposed (section segmentation and contrastive learning) components are used with several existing models and are shown to be effective, especially with limited training data.

Weaknesses

* The used baselines are mainly CNN, RNN based. The only used transformer-based baseline PLM-ICD seems not to be a strong one. See suggestion 3

Questions

* Suggest swapping equations (1) and (2) * Section 4.3: can you explain what is the role of perm operation (or saying, why it is necessary)? * Suggest to consider stronger transformer-based baselines [1] [1] Xiang Dai, Ilias Chalkidis, Sune Darkner, Desmond Elliott, "Revisiting Transformer-based Models for Long Document Classification", in Findings of EMNLP, 2022.

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

N/A

Reviewer VQpM3/10 · confidence 4/52023-07-07

Summary

The paper proposed a semi-structured automatic ICD coding algorithm with a contrastive pre-training and masked section training and evaluate the algorithm using MIMIC-III dataset.

Strengths

The paper is well structured with clear explanation in research motivation, related work, experiment configuration and results. Empirical results were obtained with multiple baseline models on benchmark dataset MIMIC-III. Code and data are also provided.

Weaknesses

1. In the related work part, the paper misses the weak supervision approach applied on ICD coding. 2. Result tables (Table 1 and Table 2) and result plots (Figure 4) miss confidence intervals (CIs). Standard deviations are not intuitive to illustrate the variance for model comparison, especially only 5 repetitions are performed. Pls compute the CIs for each results, which should be straight forward. 3. The comparison of w/C and w/M in Figure 4 is interesting to illustrate the utility and necessity of section identification in your proposed framework. Better to provide a table with results and confidence intervals in main text or supplement. Otherwise, the performance difference looks very trivial. In general, the model evaluation is weak in the current representation, which might eliminate the technical soundness.

Questions

1. Are the results cross validated? It is not specified in the main text or supplement. Pls justify the significance and generalizability of the proposed model.

Rating

3: Reject: For instance, a paper with technical flaws, weak evaluation, inadequate reproducibility and incompletely addressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

2 fair

Presentation

2 fair

Contribution

2 fair

Limitations

Yes. Limitations are addressed in the paper.

Reviewer ijoF7/10 · confidence 4/52023-07-26

Summary

The paper tackles automatic ICD coding. It lists challenges and proposes solutions to them: 1. For ignoring structural information, it proposes a content-based algorithm that automatically segments clinical notes into sections. 2. For limited availability of data and variability of clinical notes, it proposes a contrastive learning framework based on a soft multi-label similarity with tree edit distance and a masked section training strategy. The authors conduct extensive experiments on MIMIC-III and demonstrate that their proposed methods can enhance the performance of existing ICD coding models.

Strengths

- The paper is well-written and easy to follow. The introduction, related work and preliminaries gives a clear background and motivation to the problem. - Code is provided in the supplementary material. - DF-IAPF is neat, easy to implement, and fast to run. - DF-IAPF has two assumptions: 1) section titles have high document frequency; 2) section titles have low average phrase frequency. While there are corner uses where a section title only appears in some notes, or it appears multiple times in a note, the paper provides both qualitative and quantitive analysis that compare DF-IAPT with a rule-based algorithm and demonstrates the effectiveness of DF-IAPT. - Soft multi-label similarity based on tree edit distance captures the hierarchy difference between two ICD label sets. - The choices of tasks cover frequent, rare, and the entire ICD codes in MIMIC-III. - Experiments verify the effectiveness of proposed methods on a diverse set of backbones. - Ablation studies clearly show the improvement of each method proposed in this paper.

Weaknesses

An expert selection process is needed after DF-IAPF proposes a candidate set. How important is the expert selection process? There should be a comparison between DF-IAPF fully automatic and DF-IAPF followed by an expert selection.

Questions

- Line 238: Is h_section more accurate than h_note? - Typo in line 12 of Algorithm 1 in Appendix A: TF(t) -> PF(t)?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

4 excellent

Presentation

4 excellent

Contribution

3 good

Limitations

This paper includes a section in Appendix, discussing broader impacts. The conclusion section also briefly states the limitations of this work. It would be better to have a separate section to discuss these limitations.

Reviewer BZWL2023-08-15

Rebuttal response

Based on the clear and convincing response by the authors, I have revised my review scoring.

Authorsrebuttal2023-08-18

Dear Reviewer ijoF, We would like to thank you again for your feedback. If there are any further concerns or questions, please do not hesitate to let us know before the author discussion period ends. We will be happy to answer them during the discussion. Thank you!

Authorsrebuttal2023-08-18

Dear Reviewer VQpM, We would like to thank you again for your reviews. We understand reviewing is a time-consuming process. Your feedback on our rebuttal is more than valuable in improving the quality of our paper. If there are any further concerns or questions, please feel free to let us know before the author discussion period ends. We will be happy to answer them during the discussion. Thank you!

Reviewer VQpM2023-08-21

Thank you

Thank you for providing the answers to the questions as well as confidence intervals for the experiments. However, it seems that a two-side t-test is performed to check the difference in distributions, instead of a one-side t-test to prove that the performance is improved from one to the other. It's not enough to indicate the proposed method is better than baseline. Pls justify. Thank you!

Authorsrebuttal2023-08-21

To justify, we further calculate one-sided (greater) paired *t*-test using scipy's `ttest_rel` function: ```python result = ttest_rel(a, b, alternative='greater') print('p-value:', result.pvalue) print('confidence interval:', result.confidence_interval(confidence_level=0.95)) ``` Here, `a` is the results of our method, and `b` is the results of the backbone methods. We demonstrate the new p-values and confidence intervals as follows: Confidence Interval for Table 1: | Model | Macro-$F_1$ w/o CM | Macro-$F_1$ w/ CM | $p$-value | Confidence Interval | |--------------|--------------------|-------------------|--------------------|---------------------| | MultiResCNN | 60.8 (0.3) | 62.2 (0.3) | $6 \times 10^{-5}$ | [1.3, $+\infty$] | | HyperCore | 61.1 (0.2) | 62.0 (0.2) | $3 \times 10^{-3}$ | [0.5, $+\infty$] | | JointLAAT | 66.4 (0.1) | 67.2 (0.2) | $4 \times 10^{-3}$ | [0.5, $+\infty$] | | EffectiveCAN | 66.7 (0.1) | 67.5 (0.2) | $1 \times 10^{-3}$ | [0.5, $+\infty$] | | PLM-ICD | 64.5 (0.3) | 65.2 (0.1) | $1 \times 10^{-4}$ | [0.4, $+\infty$] | | MSMN | 68.1 (0.2) | 69.1 (0.1) | $4 \times 10^{-4}$ | [0.9, $+\infty$] | Confidence Interval for Table 2: | Model | Macro-$F_1$ w/o CM | Macro-$F_1$ w/ CM | $p$-value | Confidence Interval | |--------------|--------------------|-------------------|--------------------|---------------------| | MultiResCNN | 11.2 (2.1) | 22.8 (1.3) | $2 \times 10^{-4}$ | [9.8, $+\infty$] | | HyperCore | 12.5 (1.3) | 23.4 (1.9) | $1 \times 10^{-5}$ | [11.6, $+\infty$] | | JointLAAT | 20.2 (1.9) | 28.6 (1.1) | $9 \times 10^{-5}$ | [8.8, $+\infty$] | | EffectiveCAN | 19.8 (1.4) | 27.1 (2.4) | $6 \times 10^{-5}$ | [7.2, $+\infty$] | | PLM-ICD | 22.6 (2.5) | 30.3 (1.5) | $3 \times 10^{-4}$ | [6.8, $+\infty$] | | MSMN | 23.7 (1.0) | 31.2 (1.3) | $1 \times 10^{-5}$ | [9.2, $+\infty$] | Confidence Interval for Figure 4 (MSMN): | Variant | Macro-$F_1$ of Variant | Confidence Interval for Macro-$F_1$ w/CM: 69.1 (0.1) | |---------|------------------------|------------------------------| | w/o CM | 68.1 (0.2) | [0.8, $+\infty$] | | w/ J | 68.3 (0.1) | [0.6, $+\infty$] | | w/ C | 68.7 (0.2) | [0.4, $+\infty$] | | w/ M | 68.9 (0.1) | [0.2, $+\infty$] | We hope the new results can adequately address your concerns.

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC