A Multi-Label Machine Learning Approach to Support Pathologist's Histological Analysis
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Azzini, Antonia; Cortesi, Nicola; Marrara, Stefania; Topalović, Amir Conference Paper A Multi-Label Machine Learning Approach to Support Pathologist's Histological Analysis Provided in Cooperation with: IRENET - Society for Advancing Innovation and Research in Economy, Zagreb Suggested Citation: Azzini, Antonia; Cortesi, Nicola; Marrara, Stefania; Topalović, Amir (2019) : A Multi-Label Machine Learning Approach to Support Pathologist's Histological Analysis, In: Proceedings of the ENTRENOVA - ENTerprise REsearch InNOVAtion Conference, Rovinj, Croatia, 12-14 September 2019, IRENET - Society for Advancing Innovation and Research in Economy, Zagreb, pp. 197-208 This Version is available at: https://hdl.handle.net/10419/207680 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc/4.0/
197 ENTRENOVA 12-14, September 2019 Rovinj, Croatia A Multi-Label Machine Learning Approach to Support Pathologist's Histological Analysis Antonia Azzini Consortium for the Technology Transfer – C2T, Italy Nicola Cortesi Consortium for the Technology Transfer – C2T, Italy Stefania Marrara Consortium for the Technology Transfer – C2T, Italy Amir Topalović Consortium for the Technology Transfer – C2T, Italy Abstract This paper proposes a new tool in the field of telemedicine, defined as a specific branch where IT supports medicine, in case distance impairs the proper care to be delivered to a patient. All the information contained into medical texts, if properly extracted, may be suitable for searching, classification, or statistical analysis. For this reason, in order to reduce errors and improve quality control, a proper information extraction tool may be useful. In this direction, this work presents a Machine Learning Multi-Label approach for the classification of the information extracted from the pathology reports into relevant categories. The aim is to integrate automatic classifiers to improve the current workflow of medical experts, by defining a Multi-Label approach, able to consider all the features of a model, together with their relationships. Keywords: machine learning, health problems, knowledge extraction, data mining, classification JEL classification: I10, I12 Introduction In the medical field, the use of information technologies plays an important role since more than 50 years. Thanks to this interaction, nowadays it is possible to refer to several medical applications, which improve doctors and patients life. This paper focuses on telemedicine, defined as a specific branch where IT supports medicine, in case distance impairs the proper care to be delivered to a patient. Especially in case of remote diagnosing and teleconsulting systems, data (including medical texts and images) are acquired locally and shared via web to physicians, which can be anywhere else and still be able to analyse the data and send the diagnosis back (Combi et al., 2016). The information contained into medical texts (such as patient records or discharge summaries) is relevant to several different retrieval, coding and inference purposes. It should, for instance, provide support for medical decision making, for mapping data into medical coding systems, or for quality assurance of medical treatment. According to the growing availability of medical documents in machine readable form, procedures for automatically analysing and formatting textual data gain more and more importance, since hand-coding and manual indexing are time-consuming and usually error-prone.
198 ENTRENOVA 12-14, September 2019 Rovinj, Croatia In fact, pathology reports, i.e. the output document of a tissue sample analysis, play an important role in cancer diagnosis and staging (describing the extent of cancer within the body, especially whether it has spread). These reports are usually written by the pathologist in natural language, and then the relevant information has to be extracted and organized in a form suitable for statistical analysis to be stored in a proper data structure. Anyway, even if the use of structured information may help the data sharing among institutions, integrating structured and unstructured data information remains a challenge (Garcia-Remesal et al., 2009). Moreover, clinicians need time to learn the different standards available, hence they prefer the flexibility of free text to record their analyses and conclusions. Ideally, natural language texts would be then used as input to automatically extract the data required by different protocols. This project aims to introduce an innovation in the field of telemedicine, with a particular focus on the diagnosis of samples in the oncology field. During oncological surgery, in fact, it often happens that the surgeon has to remove tissue samples for histological examination. While waiting for the result of this examination, the surgery is suspended, clearly lengthening the action time and precluding the possibility to complete the surgery in a single step. If the hospital does not have a pathological anatomy laboratory inside, equipped for these analyses, two scenarios may occur: the pathologist is moved to the facility where the operating block is located for the entire duration of the operations that may require this service; the samples are sent to an external analysis laboratory, which will have its own costs and time. These issues may create great inefficiencies and significant costs. Moreover, pathology records contain sensitive information, and often it is not easy to make them widely available. In order to reduce errors and to improve quality control, a dedicated tool may be useful. Natural Language Processing (NLP) and Machine Learning (ML) approaches represent in this scenario a promising solution to handle, respectively, unstructured data and to extract useful information. This work is then based on a Machine Learning approach for the classification of relevant information contained in pathology reports into categories related to cancer diagnosis, by applying Information Extraction and Text Mining techniques to extract the features of the classifiers. The remaining of the paper is organized as follow. After a brief summary of the related works into “Related Work” Section, the approach is presented into “The Multi- Label Machine Learning Approach” Section, by detailing the data pre-processing and the knowledge extraction phases, and by describing the implemented classifiers. Preliminary experiments are then presented and discussed, together with the obtained results, into “Preliminary Experiments and Prototype” Section, and final remarks conclude into “Conclusion” Section. Related Work As reported by the literature, all the reports are usually written by the pathologist in natural language. Such a scenario is then considered promising for text mining research. The state of the art in text mining from pathology reports has mainly relied on domain-specific lexicons and rules (Cohen & Hersh, 2005). Anyway, different solutions have been proposed for several specific problems. An interesting review presented by Meystre and colleagues in (Meystre et al., 2007) underlines the importance of information encoding in order to reduce errors and improve the quality control of medical records. In particular, the authors emphasize that NLP techniques, and more precisely Information Extraction (IE), are essential in this
199 ENTRENOVA 12-14, September 2019 Rovinj, Croatia domain. Moreover, pre-processing such as spell checking, document structure analysis, sentence splitting and contextual features are crucial for the accurate interpretation of the extracted information. Li and colleague, for example, define in (Li & Martinez, 2010) a comparative work that considers different supervised text classification systems to predict a set of defined categories, encoded as string values, in the domain of pathology records, while in the work carried out by Sariuglu and colleagues (Sarioglu et al., 2013), an approach, based on a recommender system with unsupervised techniques, has been implemented in order to support the clinical decision-making activity. A similar work has been presented in the literature (Jouhet et al., 2012), aimed at constructing and evaluating functions (classifiers), produced by supervised ML techniques. This approach is also based on an automatic categorization of pathology reports by using only their content, divided between two levels of granularity obtained from the data pre-processing. Even though the work a single label methodology has been considered, the authors report that the text pathology reports could be useful as a data source for automated systems in order to identify, classify and notify new cancer cases. Coden and colleagues (Coden et al., 2009) present in their contribution a different approach that automatically instantiates a knowledge representation model starting again from textual pathology reports. Their work is based on an open-source framework by using NLP, ML and rules to discover and populate elements of a defined model. On the other hand, Pestian and colleagues define in (Pestian et al., 2007) an approach aimed at collecting and pre-processing the textual data, through a corpus definition and a coding process, which refers to critical aspects like ambiguity and anonymization, manual inspection and majority annotation. Zhou and colleagues present in (Zhou et al., 2004) an exploratory work on adapting an existing HMM-based named entity recognizer to the biomedical domain. Various lexical, morphological, syntactic, semantic and discourse features have been incorporated to cope with the so-called entity recognition problem. A K-NN algorithm is proposed by the authors to effectively resolve the data sparseness problem. Several different techniques may be used to extract information, from simple pattern matching to complete processing methods based on symbolic information and rules or based on statistical methods and ML. In this direction, the approach implemented in this work implements an automatic learning system of the analyses carried out by the pathologist on several samples in the oncological field. Machine Learning based Text Classifiers The approach adopted into this paper lies in the domain of “Text Classification”. In the recent literature, Text Classification (TC) has proven to give good results in extracting knowledge from many real-life Web-based data such as, for instance, those gathered by institutional scientific information platforms or microblogs and other social media platforms (Ceci & Malerba, 2007) and also in many different research areas such as opinion spam detection (Viviani & Pasi, 2017) and sentiment analysis (Bifet & Frank, 2010). For decades, constructing a machine learning system required considerable expertise to design the feature extraction phase to transform the raw data into input features for a (machine learning) classifier (LeCun et al., 2015). The Word Representation before feeding a classifier can be obtained by performing word selection or by replacing words with continuous value representations (e.g., word embedding (Turian et al., 2010) like word2vec (Mikolov et
200 ENTRENOVA 12-14, September 2019 Rovinj, Croatia al., 2013)), or by using a classifier able to discover word representations, or a combination thereof. Automatic text classification can be performed by using a supervised, unsupervised, or semi-supervised machine learning approach. Supervised learning is based on training a classifier over a set of texts previously labelled by domain experts. Unsupervised learning does not require an already labelled dataset, while semisupervised approaches rely on both labelled and unlabelled data. Supervised learning approaches performs better in text classification w.r.t unsupervised ones, but the task of labelling a dataset requires a huge effort to domain experts. Unsupervised learning is used to identify categories or discover hidden structure in texts (e.g., clustering). The prototype presented into this approach implements an example of a supervised learning application. Generally, a supervised approach is mainly divided into single, multi and/or multilabel classification (Tsoumakas & Katakis, 2007). In the first case each instance is associated only to one category; the second one considers multiple categories, but each instance is assigned only to one; while in the latter case each instance can be assigned to more than one category. Multi-label classification can be mainly divided into: “Binary Relevance”, where a multi-label problem is divided into n single label problems; “Classifier Chains”, the problem is transformed into “n” different correlated problems, i.e. in which the output of the problem “n-1” is the input of the problem “n”; “Label Powerset”, that turns a multi-label problem into a single multi-class problem, and finally “Adaptive algorithms”, where multi-label algorithms have been applied to solve the problem. The Multi-Label Machine Learning Approach As previously introduced, the idea behind this work is to support the pathologist in the process of classifying the information acquired from the analysis of stains (markers) carried out on the tissue samples analyzed. The approach has been built on a set of 2186 cases of breast cancer described in pathologist reports that are the output of tissue samples analyses. Each record contains, in textual form, observations on the markers used during the analysis, the values of these markers, and notes regarding the cancer diagnosis. The overall architecture is reported in Figure 1. Figure 1 Overall Architecture of the Approach Source: Authors’ work After the acquisition phase, the data are preprocessed and the information useful for the classification processes are obtained by applying text mining techniques (as ngram encoding (generally speaking, an n-gram is a set of n consecutive words) and by defining rules applied by the knowledge extraction module. Such rules are then applied in order to extract the text knowledge and to define a structure for it. From an
201 ENTRENOVA 12-14, September 2019 Rovinj, Croatia empirical analysis carried out by the expert, it is then possible to notice that both the text and their defined keywords have a fixed structure. This information is used to select the most informative tokens among the extracted n-grams and to create regular expressions able to capture interesting interdependencies among the markers. The resulting dataset is composed by couples (input-expected output), used to train two multi-label supervised classifiers. The input values correspond, as detailed in Figure 2(b), to the seven most useful markers, their positivity value and the tumour staging value. The expected output, (i.e. those defined by the pathologist) instead, differ for each of the supervised classifier, and correspond, respectively to the ductal/lobular analyse values for the Type classifier, and to the infiltrating/in situ analyse values for the Infiltration classifier. These classifiers, are able to acquire in parallel the entire dataset, and provide, respectively, the type of cancer and the type of infiltration for each clinical record stored into the repository. Data Preprocessing and Knowledge Extraction As introduced, the clinical data from the pathological analysis are in text form. The final dataset is structured as an Excel table whose columns describe the results of the analysis. The “Clinical Code” is represented by an alphanumeric identification value of the medical record. The “Marker Code and Description” are textual objects used for analysis and the marker. The “Textual Description” corresponds to the description of the free text of the pathologist's analysis result, while “Positive” is the boolean value of the analysis result. Each medical record is divided into several files, one for each marker considered by the pathologist to analyze the tissue sample. Consequently, the first operation to be performed is to aggregate the different markers and identify the corresponding records in order to create the vocabulary associated with them. As introduced, the clinical data resulting from the pathological analyses are in textual form. Since the texts are in the form of short quick notes (more similar to keywords lists than proper text), it is not necessary to perform a traditional preprocessing, by including activities such as tokenization (i.e., sentences are split into separate words and punctuation is removed), lower case reduction, stop-words removal (e.g., elimination of common and low informative words as “the”, “of”, “as”, by using a predefined list), or stemming (words are reduced to their stem) (McCallum, 2005). Instead, the operations performed in this approach are focused on eliminating redundant and unuseful information as duplicates. The final dataset is structured as an Excel table whose columns detail the items reported in Table 1. Each clinical record is divided into several rows, one for each marker considered by the pathologist to analyse the tissue sample. Consequently, the first operation to be performed is to aggregate the different markers and recognize the corresponding records in order to create the vocabulary associated with them. Table 1 Formatting of the Data Provided as Inputs to the Implemented Prototype Item Type Description Clinical Code Text Alfanumeric identification value of the medical record. Marker Code Text Marker code used for the analysis. Marker Description Text Marker description used for the analysis. Textual Description Free Text Free text with the description of the results of the pathologist’s analysis. Positive Boolean Boolean value of the analysis result. Source: Authors’ work
202 ENTRENOVA 12-14, September 2019 Rovinj, Croatia The Clinical code is represented by an alphanumeric identification value of the medical record. The Marker Code is a textual item used for the analysis, and the Marker defines the marker description used for such analysis. The textual description corresponds to the free text description of the result of the pathologist’s analysis, while Positive is the Boolean value of the analysis result. The Figure 2(a) shows the distribution of the presence assumed by the tumour markers that are detailed into the Excel sheet. Missing or null values are reported by yellow areas, while the purple ones indicate the presence of values. However, as Figure 2(b) shows, it is possible to observe how, among all the markers reported by Figure 2(a), only seven (BCL2, KI67, P53, HER2, PROGESTERONE, OESTROGEN, TOPOISOMERASE), together with the tumour staging and positivity value, represent the most significant information. These data are used in the prototype as input of the Machine Learning system. Figure 2: Markers distribution Representation (a) and Most Useful Markers Extraction (b) (a) (b) Source: Authors’ work This observation may, even though partially, reduce the dataset dimension, since only a few cases can be considered complete (i.e. those for which all fields are valued). The words extracted from the text are finally processed by using a “bag-of-words” representation. The n-grams are extracted in the form of unigrams, bigrams, and 3- grams frequencies, which have been stored in ad-hoc data structures (McCallum, 2005). The data pre-processing also shows that the notes reported by the pathologist highlight information like the cancer type. Note that it is possible that the tokens position may be switched within the considered n-gram (eg: “lobular carcinoma'' vs “ductal carcinoma'', or “infiltrating carcinoma'' vs “in situ carcinoma”). From an empirical analysis performed by the experts, it comes out that there exist several correlations among data that co-occur in a given diagnosis. Different regular expressions are implemented in order to define those that better fulfil the representation and correlations observed among the input data of the ML classifier. In particular, the main information acquired by each instance of the dataset corresponds to the extraction of the following information: o Marker value: this information is a couple (marker, value), where significant markers, by a manual analysis of pathological findings, such as BCL2, KI67 (that indicates tumour growth), P53 (it works as tumour suppressor; also called the “guardian of the genome”), HER2, OESTROGEN, PROGESTERONE, TOPOISOMERASE. o Tumour score: represents the score of the tumour. The resultant of the corresponding regular expression represents a grade value, associated with a score value as shown below, indicating a different growing of the tumour cells.
203 ENTRENOVA 12-14, September 2019 Rovinj, Croatia This system grades breast tumours based on the following features: Tubule formation: how much of the tumour tissue has normal breast (milk) duct structures; Nuclear grade: an evaluation of the size and shape of the nucleus in the tumour cells; Mitotic rate: how many dividing cells are present, which is a measure of how fast the tumour cells are growing and dividing. Each of the categories gets a score between 1 and 3; a score of “1” means that the cells and the tumour tissue look mostly like normal cells and tissue, while a score of “3” means that the cells and tissue look mostly abnormal. The scores for the three categories are then added, yielding a total score ranged between 3 and 9. Three grades are possible: - Grade 1 o well differentiated (score (3-5): slow growing, similar to a normal breast tissue. - Grade 2 o Moderately differentiated (score 6-7): the growing is faster than those identified with a lower score. - Grade 3 o poorly differentiated (score 8-9). Tumour cells appear to be very different from normal cells and have a higher and faster probability of growing and spreading w.r.t. the two previous grades. o Tumour Staging: it is based on the TNM classification, which expresses information related to certain anatomical characteristics of the tumour itself, such as: T (Tumour): indicates the size and extent of the tumour. N (Nodes) indicates the evaluation of the involvement of regional lymph nodes. M (Metastasis): indicates the presence/absence of metastases far from the primary tumour. o Type of tumour: correspond to the types classified by the multi-label Machine Learning approach; they are: lobular, ductal, in situ and infiltrating. The correlations among data observed by the experts have been expressed by defining regular expressions. An example of the regular expression for the extraction of the tumour staging value is reported as follows, where “t_n'' represents the tumour dimension, “tx'' an unidentifiable tumour location, and “ptis'' an “in situ'' tumour location. staging_regex = r” + staging_type staging_types = [’t1’,’t2’,’t3’,’t4’,’tx’, ’ptis’] (1) Another example of regular expression is reported as follows, in order to extract the marker’s value: “marker_regex’’ is a 203 oolean value representing the presence/absence of a marker. “value_regex’’ corresponds to the value of the marker reported in the pathology report. marker_regex = r” + marker + ’ .*\n(.*)’ value_regex = r”([.,]?[0-9][.,]?[0-9]*).*%” (2) Regular expressions may be nested. In this case the output of the evaluation of the first expression is used as input of the second one. The first expression searches for the marker label in the text, and returns the text line following the line containing the marker to the second expression. The second expression searches in the input text line for a token like "number %" and returns the number (value of the marker). The info extracted in this step are used as features of the classifiers. The aim of this approach is to classify the markers w.r.t. the cancer diagnosis in order to understand which are the most important for each class. This classification is important to give useful suggestions to the pathologist during the tissue sample analysis. Based on these
204 ENTRENOVA 12-14, September 2019 Rovinj, Croatia suggestions the pathologist chooses on which markers to focus after a first set of preliminary results, avoiding to observe un-useful markers and optimizing the analysis process. Description of the classifiers adopted in the approach The dataset has been divided into two subsets, with, respectively, 80% of the data used for the training (randomly chosen), and the remaining 20% for the test. In this project we adopted a step by step strategy, in which several solutions were studied, developed and compared to identify the most promising. In the first solution four single-label binary classificators were developed, one for each category involved into the classification problem, i.e., lobular, ductal, in situ and infiltrating. Anyway, it was soon clear that with this solution none of the different dependencies of the outputs have been taken into account during the classification. The result is an approach too simple, that leads to an unrealistic view of the complexity of the problem being analyzed. For this reason a multi-label approach has been then defined, by considering the overlapping of the features provided as input and of the corresponding output classes, respectively divided into tumour type (ductal/ lobular) and tumour infiltration (infiltrating/in situ), since a tumour could be both ductal and lobular and simultaneously in situ and infiltrating. As reported in Table 2, several multi-Label algorithms have been applied and tested during the classification process (Madjarov et al., 2012). Among them, the best results are obtained, for both the classifiers, by using the adaptive Multi-Label-KNN algorithm. The main idea of such an approach, indeed, is that an instance’s labels depend on the number of neighbours that possess identical labels (Liu & Cao, 2015). In particular, given an instance x with an unknown label set defined as “L(x) <= L”, the algorithm first identifies the K nearest neighbours in the training data and counts the number of neighbours belonging to each class. Then the maximum a posteriori principle is used to determine the label set for the test instance. In other words, KNN, which searches within the example space for the nearest neighbour to the element being classified, i.e. the most similar k elements, and associates it with the most common class among them. If “K=1”, the element under examination is assigned the same class as its closest neighbour. As reported in the literature (Liu & Cao, 2015), two main advantages arise from the ML-KNN and regard, respectively, the decision boundary that can be adaptively adjusted due to the varying neighbours identified for each new instance, and the usage of probabilities, estimated for each class label, in order to solve the classimbalance problem. Preliminary Experiments and Prototype The prototype is implemented with the Python v3 programming language, by using Scikit-Learn as Machine Learning Library. The prototype is then tested on a dataset of 2186 medical records provided by national institutes for pathological analysis (omitted for privacy reasons), with a number of positive cases equal to 1952 and a number of negative cases equal to 234. The dataset is unbalanced towards positive cases because these analyses are carried out on people suspected of the presence of a percentage (%) disease, in our case breast cancer. The results of a set of preliminary experiments are detailed in Table 2. The accuracy values of the implemented classifiers confirm that, as previously reported, the better