{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,20]],"date-time":"2026-11-20T19:06:23Z","timestamp":1795201583424,"version":"4.10.3"},"reference-count":42,"publisher":"Springer Science and Business Media LLC","issue":"3","license":[{"start":{"date-parts":[[2021,10,28]],"date-time":"2021-10-28T00:00:00Z","timestamp":1635379200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2021,10,28]],"date-time":"2021-10-28T00:00:00Z","timestamp":1635379200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"DOI":"10.13039\/501100005632","name":"Narodowe Centrum Bada\u0144 i Rozwoju","doi-asserted-by":"publisher","award":["POIR.01.01.01-00-0328\/17"],"award-info":[{"award-number":["POIR.01.01.01-00-0328\/17"]}],"id":[{"id":"10.13039\/501100005632","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100005632","name":"narodowe centrum bada\u0144 i rozwoju","doi-asserted-by":"publisher","award":["2017\/27\/B\/ST6\/0130t"],"award-info":[{"award-number":["2017\/27\/B\/ST6\/0130t"]}],"id":[{"id":"10.13039\/501100005632","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["J Intell Inf Syst"],"published-print":{"date-parts":[[2021,12]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>Medical free-text records store a lot of useful information that can be exploited in developing computer-supported medicine. However, extracting the knowledge from the unstructured text is difficult and depends on the language. In the paper, we apply Natural Language Processing methods to process raw medical texts in Polish and propose a new methodology for clustering of patients\u2019 visits. We (1) extract medical terminology from a corpus of free-text clinical records, (2) annotate data with medical concepts, (3) compute vector representations of medical concepts and validate them on the proposed term analogy tasks, (4) compute visit representations as vectors, (5) introduce a new method for clustering of patients\u2019 visits and (6) apply the method to a corpus of 100,000 visits. We use several approaches to visual exploration that facilitate interpretation of segments. With our method, we obtain stable and separated segments of visits which are positively validated against final medical diagnoses. In this paper we show how algorithm for segmentation of medical free-text records may be used to aid medical doctors. In addition to this, we share implementation of described methods with examples as open-source  package .<\/jats:p>","DOI":"10.1007\/s10844-021-00659-4","type":"journal-article","created":{"date-parts":[[2021,10,28]],"date-time":"2021-10-28T10:03:03Z","timestamp":1635415383000},"page":"447-465","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":16,"title":["Interpretable segmentation of medical free-text records based on word embeddings"],"prefix":"10.1007","volume":"57","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6460-3079","authenticated-orcid":false,"given":"Adam Gabriel","family":"Dobrakowski","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Agnieszka","family":"Mykowiecka","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ma\u0142gorzata","family":"Marciniak","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Wojciech","family":"Jaworski","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Przemys\u0142aw","family":"Biecek","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2021,10,28]]},"reference":[{"issue":"2","key":"659_CR1","doi-asserted-by":"publisher","first-page":"49","DOI":"10.1145\/304181.304187","volume":"28","author":"M Ankerst","year":"1999","unstructured":"Ankerst, M., Breunig, M.M., Kriegel, H.-P., & Sander, J. (1999). Optics: Ordering points to identify the clustering structure. ACM Sigmod Record, 28(2), 49\u201360.","journal-title":"ACM Sigmod Record"},{"key":"659_CR2","doi-asserted-by":"crossref","unstructured":"Apostolova, E., Channin, D.S., Demner-Fushman, D., Furst, J., Lytinen, S., & Raicu, D. (2009). Automatic segmentation of clinical texts. In Proceedings of the 31st annual international conference of the IEEE engineering in medicine and biology society (pp. 5905\u20135908). IEEE.","DOI":"10.1109\/IEMBS.2009.5334831"},{"key":"659_CR3","doi-asserted-by":"crossref","unstructured":"Banea, C., Chen, D., Mihalcea, R., Cardie, C., & Wiebe, J. (2014). Simcompass: Using deep learning word embeddings to assess cross-level similarity. In P. Nakov T Zesch (Eds.) Proceedings of the 8th international workshop on semantic evaluation (SemEval 2014). ACL and Dublin City University (pp. 560\u2013565).","DOI":"10.3115\/v1\/S14-2098"},{"issue":"84","key":"659_CR4","first-page":"1","volume":"19","author":"P Biecek","year":"2018","unstructured":"Biecek, P. (2018). DALEX: Explainers for Complex Predictive Models in R. Journal of Machine Learning Research, 19(84), 1\u20135.","journal-title":"Journal of Machine Learning Research"},{"issue":"suppl_1","key":"659_CR5","doi-asserted-by":"publisher","first-page":"D267","DOI":"10.1093\/nar\/gkh061","volume":"32","author":"O Bodenreider","year":"2004","unstructured":"Bodenreider, O. (2004). The unified medical language system (UMLS): integrating biomedical terminology. Nucleic Acids Research, 32(suppl_1), D267\u2013D270.","journal-title":"Nucleic Acids Research"},{"key":"659_CR6","doi-asserted-by":"crossref","unstructured":"Chiu, B., Crichton, G., Korhonen, A., & Pyysalo, S. (2016). How to train good word embeddings for biomedical NLP. In Proceedings of BioNLP (pp. 166\u2013174).","DOI":"10.18653\/v1\/W16-2922"},{"key":"659_CR7","doi-asserted-by":"crossref","unstructured":"Choi, E., Bahadori, M.T., Searles, E., Coffey, C., Thompson, M., Bost, J., Tejedor-Sojo, J., & Sun, J. (2016a). Multi-layer representation learning for medical concepts. In KDD \u201916: Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining (pp. 1495\u20131504). ACM.","DOI":"10.1145\/2939672.2939823"},{"key":"659_CR8","unstructured":"Choi, E., Schuetz, A., Stewart, W.F., & Sun, J. (2016b). Medical concept representation learning from electronic health records and its application on heart failure prediction. arXiv:1602.03686."},{"key":"659_CR9","unstructured":"Choi, Y., Chiu, C.Y.-I., & Sontag, D. (2016c). Learning low-dimensional representations of medical concepts. AMIA Summits on Translational Science pp. 41\u201350."},{"key":"659_CR10","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-78503-5","volume-title":"Clinical text mining","author":"H Dalianis","year":"2018","unstructured":"Dalianis, H. (2018). Clinical text mining. New York: Springer."},{"key":"659_CR11","doi-asserted-by":"publisher","first-page":"150","DOI":"10.1016\/j.patrec.2016.06.012","volume":"80","author":"C De Boom","year":"2016","unstructured":"De Boom, C., Van Canneyt, S., Demeester, T., & Dhoedt, B. (2016). Representation learning for very short texts using weighted word embedding aggregation. Pattern Recognition Letters, 80, 150\u2013156.","journal-title":"Pattern Recognition Letters"},{"key":"659_CR12","doi-asserted-by":"crossref","unstructured":"De Vine, L., Zuccon, G., Koopman, B., Sitbon, L., & Bruza, P. (2014). Medical semantic similarity with a neural language model. In Proceedings of CIKM (pp. 1819\u20131822). ACM.","DOI":"10.1145\/2661829.2661974"},{"key":"659_CR13","doi-asserted-by":"crossref","unstructured":"Dobrakowski, A.G., Mykowiecka, A., Marciniak, M., Jaworski, W., & Biecek, P. (2020). Interpretable segmentation of medical free-text records based on word embeddings. In D. Helic, G. Leitner, M. Stettinger, A. Felfernig, & Z. Ra\u015b (Eds.) Foundations of intelligent systems. ISMIS Lecture Notes in Computer Science, (Vol. 12117 p. 2020). Cham: Springer.","DOI":"10.1007\/978-3-030-59491-6_5"},{"key":"659_CR14","unstructured":"Ester, M., Kriegel, H.-P., Sander, J., Xu, X., & et al. (1996). A density-based algorithm for discovering clusters in large spatial databases with noise. In KDD\u201996: proceedings of the second international conference on knowledge discovery and data mining (pp. 226\u2013231). AAAI Press."},{"issue":"2","key":"659_CR15","first-page":"(iii):1","volume":"18","author":"RB Fetter","year":"1980","unstructured":"Fetter, R.B., Shin, Y., Freeman, J.L., Averill, R.F., & Thompson, J.D. (1980). Case mix definition by diagnosis-related groups. Medical Care, 18(2), (iii):1\u201353.","journal-title":"Medical Care"},{"key":"659_CR16","doi-asserted-by":"publisher","first-page":"115","DOI":"10.1007\/s007999900023","volume":"3","author":"K Frantzi","year":"2000","unstructured":"Frantzi, K., Ananiadou, S., & Mima, H. (2000). Automatic recognition of multi-word terms: the C-value\/NC-value Method. International Journal on Digital Libraries, 3, 115\u2013130.","journal-title":"International Journal on Digital Libraries"},{"key":"659_CR17","doi-asserted-by":"crossref","unstructured":"Ganesan, K., & Subotin, M. (2014). A general supervised approach to segmentation of clinical texts. In IEEE international conference on big data (pp. 33\u201340).","DOI":"10.1109\/BigData.2014.7004390"},{"issue":"11","key":"659_CR18","doi-asserted-by":"publisher","first-page":"1064","DOI":"10.1001\/jamasurg.2019.2821","volume":"154","author":"L Gordon","year":"2019","unstructured":"Gordon, L., Grantcharov, T., & Rudzicz, F. (2019). Explainable artificial intelligence for safe intraoperative decision support. JAMA Surgery, 154 (11), 1064\u20131065.","journal-title":"JAMA Surgery"},{"key":"659_CR19","unstructured":"Jaworski, W., & Kozakoszczak, J. (2016). ENIAM: Categorial syntactic-semantic parser for Polish. In Proceedings of COLING (pp. 243\u2013247)."},{"key":"659_CR20","unstructured":"Jaworski, W., Oklesi\u0144ski, D., Lupa, J., Rutkowski, S., Kozakoszczak, J., Przetacka, J., Tele\u017cy\u0144ska, H., Antonowicz, B., Markiewicz, A., Kowalewski, J., Pie\u0144kosz, M., & Morusiewicz, A. (2018). Categorial parser. CLARIN-PL digital repository."},{"key":"659_CR21","doi-asserted-by":"crossref","unstructured":"Kobylin\u0307ska, K., Miko\u0142ajczyk, T., Adamek, M., Or\u0142owski, T., & Biecek, P. (2019). Explainable machine learning for modeling of early postoperative mortality in lung cancer. In Artificial intelligence in medicine: Knowledge representation and transparent and explainable systems (pp. 161\u2013174). Springer.","DOI":"10.1007\/978-3-030-37446-4_13"},{"key":"659_CR22","unstructured":"Krijthe, J.H. (2015). Rtsne: T-distributed stochastic neighbor embedding using barnes-hut implementation. R package version 0.13."},{"key":"659_CR23","first-page":"2579","volume":"9","author":"Lvd Maaten","year":"2008","unstructured":"Maaten, L.v.d., & Hinton, G. (2008). Visualizing data using t-SNE. Journal of Machine Learning Research, 9, 2579\u20132605.","journal-title":"Journal of Machine Learning Research"},{"key":"659_CR24","unstructured":"Marciniak, M. (2015). Domain corpora as a source of information, volume 4 of Monograph Series. Institute of Computer Science, Polish Academy of Sciences, Warsaw."},{"key":"659_CR25","unstructured":"Marciniak, M., Mykowiecka, A., & Rychlik, P. (2016). TermoPL \u2014 a flexible tool for terminology extraction. In Proceedings of the tenth international conference on language resources and evaluation (LREC 2016) (pp. 2278\u20132284). Portoro\u017e, Slovenia: ELRA."},{"issue":"75","key":"659_CR26","first-page":"89","volume":"2","author":"FE Masarie","year":"1987","unstructured":"Masarie, F.E., & Miller, R.A. (1987). Medical subject headings and medical terminology: An analysis of terminology used in hospital charts. Bulletin of the Medical Library Association, 2(75), 89\u201394.","journal-title":"Bulletin of the Medical Library Association"},{"key":"659_CR27","doi-asserted-by":"crossref","unstructured":"Masciari, E., Mazzeo, G.M., & Zaniolo, C. (2013). A new, fast and accurate algorithm for hierarchical clustering on euclidean distances. In Pacific-asia conference on knowledge discovery and data mining (pp. 111\u2013122). Springer.","DOI":"10.1007\/978-3-642-37456-2_10"},{"key":"659_CR28","unstructured":"Mikolov, T., Chen, K., Corrado, G., & Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv:1301.3781."},{"key":"659_CR29","first-page":"584","volume":"205","author":"JA Minarro-Gim\u00e9nez","year":"2014","unstructured":"Minarro-Gim\u00e9nez, J.A., Marin-Alonso, O., & Samwald, M. (2014). Exploring the application of deep learning techniques on medical text corpora. Studies in Health Technology and Informatics, 205, 584\u2013588.","journal-title":"Studies in Health Technology and Informatics"},{"key":"659_CR30","doi-asserted-by":"crossref","unstructured":"Newman-Griffis, D., Lai, A.M., & Fosler-Lussier, E. (2017). Insights into analogy completion from the biomedical domain. arXiv:1706.02241.","DOI":"10.18653\/v1\/W17-2303"},{"issue":"12","key":"659_CR31","first-page":"1","volume":"9","author":"A N\u00e9v\u00e9ol","year":"2018","unstructured":"N\u00e9v\u00e9ol, A., Dalianis, H., Savova, G., & Zweigenbaum, P. (2018). Clinical natural language processing in languages other than English: opportunities and challenges. Journal of Biomedical Semantic, 9(12), 1\u201313.","journal-title":"Journal of Biomedical Semantic"},{"key":"659_CR32","doi-asserted-by":"crossref","unstructured":"Orosz, G., Nov\u00e1k, A., & Pr\u00f3sz\u00e9ky, G. (2013). Hybrid text segmentation for Hungarian clinical records. In Proceedings of MICAI (pp. 306\u2013317). Springer.","DOI":"10.1007\/978-3-642-45114-0_25"},{"key":"659_CR33","doi-asserted-by":"crossref","unstructured":"Pennington, J., Socher, R., & Manning, C. (2014). Glove: Global vectors for word representation. In Proceedings of EMNLP (pp. 1532\u20131543).","DOI":"10.3115\/v1\/D14-1162"},{"key":"659_CR34","unstructured":"R Core Team. (2020). R: A Language and environment for statistical computing. R Foundation for Statistical Computing. Vienna, Austria."},{"issue":"336","key":"659_CR35","doi-asserted-by":"publisher","first-page":"846","DOI":"10.1080\/01621459.1971.10482356","volume":"66","author":"WM Rand","year":"1971","unstructured":"Rand, W.M. (1971). Objective criteria for the evaluation of clustering methods. Journal of the American Statistical Association, 66(336), 846\u2013850.","journal-title":"Journal of the American Statistical Association"},{"key":"659_CR36","doi-asserted-by":"publisher","first-page":"53","DOI":"10.1016\/0377-0427(87)90125-7","volume":"20","author":"PJ Rousseeuw","year":"1987","unstructured":"Rousseeuw, P.J. (1987). Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. Journal of Computational and Applied Mathematics, 20, 53\u201365.","journal-title":"Journal of Computational and Applied Mathematics"},{"key":"659_CR37","unstructured":"Ruffini, M., Gavald\u00e0, R., & Lim\u00f3n, E. (2017). Clustering patients with tensor decomposition. arXiv:1708.08994."},{"key":"659_CR38","unstructured":"Selivanov, D, & Wang, Q. (2018). text2vec: Modern Text Mining Framework for R, R package version 0.5.1."},{"issue":"301","key":"659_CR39","doi-asserted-by":"publisher","first-page":"236","DOI":"10.1080\/01621459.1963.10500845","volume":"58","author":"JH Ward Jr.","year":"1963","unstructured":"Ward Jr., J. H. (1963). Hierarchical grouping to optimize an objective function. Journal of the American Statistical Association, 58(301), 236\u2013244.","journal-title":"Journal of the American Statistical Association"},{"key":"659_CR40","unstructured":"Waszczuk, J. (2012). Harnessing the CRF complexity with domain-specific constraints. The case of morphosyntactic tagging of a highly inflected language. In Proceedings of COLING (pp. 2789\u20132804)."},{"key":"659_CR41","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-24277-4","volume-title":"ggplot2: Elegant graphics for data analysis","author":"H Wickham","year":"2016","unstructured":"Wickham, H. (2016). ggplot2: Elegant graphics for data analysis. New York: Springer-Verlag."},{"issue":"2","key":"659_CR42","doi-asserted-by":"publisher","first-page":"103","DOI":"10.1145\/235968.233324","volume":"25","author":"T Zhang","year":"1996","unstructured":"Zhang, T., Ramakrishnan, R., & Livny, M. (1996). Birch: an efficient data clustering method for very large databases. ACM Sigmod Record, 25(2), 103\u2013114.","journal-title":"ACM Sigmod Record"}],"container-title":["Journal of Intelligent Information Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10844-021-00659-4.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10844-021-00659-4\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10844-021-00659-4.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2021,12,13]],"date-time":"2021-12-13T06:05:48Z","timestamp":1639375548000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10844-021-00659-4"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,10,28]]},"references-count":42,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2021,12]]}},"alternative-id":["659"],"URL":"https:\/\/doi.org\/10.1007\/s10844-021-00659-4","relation":{},"ISSN":["0925-9902","1573-7675"],"issn-type":[{"value":"0925-9902","type":"print"},{"value":"1573-7675","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,10,28]]},"assertion":[{"value":"10 December 2020","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"2 July 2021","order":2,"name":"revised","label":"Revised","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"12 July 2021","order":3,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"28 October 2021","order":4,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare that they have no conflict of interest.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"<!--Emphasis Type='Bold' removed-->Conflict of Interests"}}]}}