journal article·2025-06-10Open access

Elevating Clinical Semantics: Contrastive Pre-Training Beyond Cross-Entropy in Discharge Summaries

Svetlana Kim, Yuchae Jung

Applied Sciences· Volume 15· Issue 12

Abstract

Despite remarkable advances in neural language models, a substantial gap remains in precisely interpreting the complex semantics of Electronic Medical Records (EMR). We propose Contrastive Representations Pre-Training (CRPT) to address this gap, replacing the conventional Next Sentence Prediction task’s cross-entropy loss with contrastive loss and incorporating whole-word masking to capture multi-token domain-specific terms better. We also introduce a carefully designed negative sampling strategy that balances intra-document and cross-document sentences, enhancing the model’s discriminative power. Implemented atop a BERT-based architecture and evaluated on the Biomedical Language Understanding Evaluation (BLUE) benchmark, our Discharge Summary CRPT model achieves significant performance gains, including a natural language inference precision of 0.825 and a sentence similarity score of 0.775. We further extend our approach through Bio+Discharge Summary CRPT, combining biomedical and clinical corpora to boost downstream performance across tasks. Our framework demonstrates robust interpretive capacity in clinical texts by emphasizing sentence-level semantics and domain-aware masking. These findings underscore CRPT’s potential for advancing semantic accuracy in healthcare applications and open new avenues for integrating larger negative sample sets, domain-specific masking techniques, and multi-task learning paradigms.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Machine Learning in Healthcare · Natural Language Processing Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of AI Convergence & Engineering, Open Cyber University of Korea, C-9F, 353, Mangu-ro, Jungnang-gu, Seoul 02087, Republic of Korea

Funding

National Research Foundation of Korea · Korea Health Technology R&D Project

References (30)

Show source-provided references
1. Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv.
2. Wang, A., Singh, A., Michael, J., Hill, F., Levy, O., and Bowman, S.R. (2018). GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. arXiv.10.18653/v1/W18-5446 ↗
3. Alsentzer, E., Murphy, J.R., Boag, W., Weng, W.-H., Jin, D., Naumann, T., and McDermott, M. (2019). Publicly Available Clinical BERT Embeddings. arXiv.10.18653/v1/W19-1909 ↗
4. BioBERT: A Pre-Trained Biomedical Language Representation Model for Biomedical Text Mining10.1093/bioinformatics/btz682 ↗
5. Gu, Y., Tinn, R., Cheng, H., Lucas, M., Usuyama, N., Liu, X., Naumann, T., Gao, J., and Poon, H. (2020). Domain-Specific Language Model Pretraining for Biomedical Natural Language Processing. arXiv.10.1145/3458754 ↗
6. Beltagy, I., Lo, K., and Cohan, A. (2019). SciBERT: A Pretrained Language Model for Scientific Text. arXiv.10.18653/v1/D19-1371 ↗
7. Peng, Y., Yan, S., and Lu, Z. (2019). Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasets. arXiv.10.18653/v1/W19-5006 ↗
8. Fang, H., and Xie, P. (2020). ConSERT: Contrastive Self-Supervised Learning for Language Understanding. arXiv.10.36227/techrxiv.12308378 ↗
9. Giorgi, J.M., Nitski, O., Bader, G.D., and Wang, B. (2020). DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representations. arXiv.10.18653/v1/2021.acl-long.72 ↗
10. Wei, J., and Zou, K. (2019). EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Tasks. arXiv.10.18653/v1/D19-1670 ↗
11. Sennrich, R., Haddow, B., and Birch, A. (2015). Improving Neural Machine Translation Models with Monolingual Data. arXiv.10.18653/v1/P16-1009 ↗
12. He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. (2020, January 13–19). Momentum Contrast for Unsupervised Visual Representation Learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00975 ↗
13. Chu, C., and Wang, R. (2018). A Survey of Domain Adaptation for Neural Machine Translation. arXiv.
14. Won, D., Lee, Y., Choi, H.-J., and Jung, Y. (2021, January 9–12). Contrastive Representations Pre-Training for Enhanced Discharge Summary BERT. Proceedings of the 2021 IEEE 9th International Conference on Healthcare Informatics (ICHI), Victoria, BC, Canada.10.1109/ICHI52183.2021.00093 ↗
15. Koehn, P., and Knowles, R. (2017). Six Challenges for Neural Machine Translation. arXiv.10.18653/v1/W17-3204 ↗
16. Zhang, Z., Han, X., Liu, Z., Jiang, X., Sun, M., and Liu, Q. (2019). ERNIE: Enhanced Language Representation with Informative Entities. arXiv.10.18653/v1/P19-1139 ↗
17. MIMIC-III, a Freely Accessible Critical Care Database10.1038/sdata.2016.35 ↗
18. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017, January 4–9). Attention Is All You Need. Proceedings of the Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, Long Beach, CA, USA.
19. Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020, January 13–18). A Simple Framework for Contrastive Learning of Visual Representations. Proceedings of the International Conference on Machine Learning, Virtual.
20. Wu, Y., Schuster, M., Chen, Z., Le, Q.V., Norouzi, M., Macherey, W., Krikun, M., Cao, Y., Gao, Q., and Macherey, K. (2016). Google’s Neural Machine Translation System: Bridging the Gap between Human and Machine Translation. arXiv.
21. Lan, Z., Chen, M., Goodman, S., Gimpel, K., Sharma, P., and Soricut, R. (2019). ALBERT: A Lite BERT for Self-Supervised Learning of Language Representations. arXiv.
22. Kalyan, K.S., and Sangeetha, S. (2020). SecNLP: A Survey of Embeddings in Clinical Natural Language Processing. J. Biomed. Inform., 101.10.1016/j.jbi.2019.103323 ↗
23. Hadsell, R., Chopra, S., and LeCun, Y. (2006, January 17–22). Dimensionality Reduction by Learning an Invariant Mapping. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR ’06), New York, NY, USA.
24. BIOSSES: A Semantic Sentence Similarity Estimation System for the Biomedical Domain10.1093/bioinformatics/btx238 ↗
25. Suominen, H., Salanterä, S., Velupillai, S., Chapman, W.W., Savova, G., Elhadad, N., Pradhan, S., South, B.R., Mowery, D.L., and Jones, G.J. (2013, January 23–26). Overview of the SHARE/CLEF eHealth Evaluation Lab 2013. Proceedings of the International Conference on Cross-Language Evaluation Forum for European Languages, Valencia, Spain.10.1007/978-3-642-40802-1_24 ↗
26. 2010 i2b2/VA Challenge on Concepts, Assertions, and Relations in Clinical Text10.1136/amiajnl-2011-000203 ↗
27. Lample, G., Ballesteros, M., Subramanian, S., Kawakami, K., and Dyer, C. (2016). Neural Architectures for Named Entity Recognition. arXiv.10.18653/v1/N16-1030 ↗
28. Settles, B. (2004, January 28–29). Biomedical Named Entity Recognition Using Conditional Random Fields and Rich Feature Sets. Proceedings of the International Joint Workshop on Natural Language Processing for Biomedicine and Its Applications, Geneva, Switzerland.10.3115/1567594.1567618 ↗
29. Deep Learning with Word Embeddings Improves Biomedical Named Entity Recognition10.1093/bioinformatics/btx228 ↗
30. Seaborn: Statistical Data Visualization10.21105/joss.03021 ↗