Explain Clinical Document - Oncology

Description

This specialized oncology pipeline can;

  • extract oncological entities,

  • assign assertion status to the extracted entities,

  • establish relations between the extracted entities from the clinical documents.

In this pipeline, seven NER, one assertion and two relation extraction model were used to achieve those tasks.

  • Clinical Entity Labels: Adenopathy, Age, Biomarker,Biomarker_Result, Cancer_Dx, Cancer_Score ,Cancer_Surgery, Chemotherapy, Cycle_Count ,Cycle_Day, Cycle_Number, Date ,Death_Entity, Direction, Dosage ,Duration, Frequency, Gender ,Grade, Histological_Type, Hormonal_Therapy ,Imaging_Test, Immunotherapy, Invasion ,Line_Of_Therapy, Metastasis, Oncogene ,PROBLEM, Pathology_Result, Pathology_Test ,PROBLEM, Performance_Status, Race_Ethnicity ,Radiotherapy, Response_To_Treatment, Relative_Date ,Route, Site_Bone, Site_Brain ,Site_Breast, Site_Liver, Site_Lung ,Site_Lymph_Node, Site_Other_Body_Part, Smoking_Status ,Staging, Targeted_Therapy, Tumor_Finding ,Tumor_Size, Unspecific_Therapy, Radiation_Dose ,Anatomical_Site, Cancer_Therapy, Size_Trend ,Lymph_Node, Tumor_Description,Lymph_Node_Modifier, Posology_Information, Oncological,Weight,Alcohol,Communicable_Disease,BMI,Obesity,Diabetes

  • Assertion Status Labels: Present, Absent, Possible, Past, Family, Hypotetical

  • Relation Extraction Labels: is_size_of, is_finding_of, is_date_of, is_location_of

Predicted Entities

Adenopathy, Age, Alcohol, Anatomical_Site, BMI, Biomarker, Biomarker_Measurement, Biomarker_Quant, Biomarker_Result, Body_Site, CNS_Tumor_Type, CancerModifier, Cancer_Dx, Cancer_Score, Cancer_Surgery, Cancer_Therapy, Cancer_dx, Cancer_dx", Carcinoma_Type, Chemotherapy, Communicable_Disease, Cycle_Count, Cycle_Day, Cycle_Number, Date, Death_Entity, Diabetes, Direction, Dosage, Duration, Frequency, Gender, Grade, Histological_Type, Hormonal_Therapy, Imaging_Test, Immunotherapy, Invasion, Leukemia_Type, Line_Of_Therapy, Lymph_Node, Lymph_Node_Modifier, Lymphoma_Type, Melanoma, Metastasis, Obesity, Oncogene, Oncological, Overweight, Pathology_Result, Pathology_Test, Performance_Status, Posology_Information, Predictive_Biomarkers, Prognostic_Biomarkers, Race_Ethnicity, Radiation_Dose, Radiotherapy, Relative_Date, Response_To_Treatment, Route, Sarcoma_Type, Site_Bone, Site_Brain, Site_Breast, Site_Liver, Site_Lung, Site_Lymph_Node, Site_Other_Body_Part, Size_Trend, Smoking_Status, Staging, Targeted_Therapy, Tumor_Description, Tumor_Finding, Tumor_Size, Unspecific_Therapy, Weight

Copy S3 URI

How to use


from sparknlp.pretrained import PretrainedPipeline

ner_pipeline = PretrainedPipeline("explain_clinical_doc_oncology", "en", "clinical/models")

result = ner_pipeline.annotate("""The Patient underwent a computed tomography (CT) scan of the abdomen and pelvis, which showed a complex ovarian mass. A Pap smear performed one month later was positive for atypical glandular cells suspicious for adenocarcinoma. The pathologic specimen showed extension of the tumor throughout the fallopian tubes, appendix, omentum, and 5 out of 5 enlarged lymph nodes. The final pathologic diagnosis of the tumor was stage IIIC papillary serous ovarian adenocarcinoma. Two months later, the patient was diagnosed with lung metastases.""")


import com.johnsnowlabs.nlp.pretrained.PretrainedPipeline

val ner_pipeline = PretrainedPipeline("explain_clinical_doc_oncology", "en", "clinical/models")

val result = ner_pipeline.annotate("""The Patient underwent a computed tomography (CT) scan of the abdomen and pelvis, which showed a complex ovarian mass. A Pap smear performed one month later was positive for atypical glandular cells suspicious for adenocarcinoma. The pathologic specimen showed extension of the tumor throughout the fallopian tubes, appendix, omentum, and 5 out of 5 enlarged lymph nodes. The final pathologic diagnosis of the tumor was stage IIIC papillary serous ovarian adenocarcinoma. Two months later, the patient was diagnosed with lung metastases.""")

Results


# NER Result

|    | sentence_id | chunks                                  | begin | end | entities             |
|----|-------------|-----------------------------------------|-------|-----|----------------------|
| 0  | 0           | computed tomography                     | 24    | 42  | Imaging_Test         |
| 1  | 0           | CT                                      | 45    | 46  | Imaging_Test         |
| 2  | 0           | abdomen                                 | 61    | 67  | Site_Other_Body_Part |
| 3  | 0           | pelvis                                  | 73    | 78  | Site_Other_Body_Part |
| 4  | 0           | ovarian                                 | 104   | 110 | Site_Other_Body_Part |
| 5  | 0           | mass                                    | 112   | 115 | Tumor_Finding        |
| 6  | 1           | Pap smear                               | 120   | 128 | Pathology_Test       |
| 7  | 1           | one month later                         | 140   | 154 | Relative_Date        |
| 8  | 1           | atypical glandular cells                | 173   | 196 | Pathology_Result     |
| 9  | 1           | adenocarcinoma                          | 213   | 226 | Cancer_Dx            |
| 10 | 2           | pathologic specimen                     | 233   | 251 | Pathology_Test       |
| 11 | 2           | extension                               | 260   | 268 | Invasion             |
| 12 | 2           | tumor                                   | 277   | 281 | Tumor_Finding        |
| 13 | 2           | fallopian tubes                         | 298   | 312 | Site_Other_Body_Part |
| 14 | 2           | appendix                                | 315   | 322 | Site_Other_Body_Part |
| 15 | 2           | omentum                                 | 325   | 331 | Site_Other_Body_Part |
| 16 | 2           | enlarged                                | 349   | 356 | Lymph_Node_Modifier  |
| 17 | 2           | lymph nodes                             | 358   | 368 | Site_Lymph_Node      |
| 18 | 3           | tumor                                   | 409   | 413 | Tumor_Finding        |
| 19 | 3           | stage IIIC                              | 419   | 428 | Staging              |
| 20 | 3           | papillary serous ovarian adenocarcinoma | 430   | 468 | Oncological          |
| 21 | 4           | Two months later                        | 471   | 486 | Relative_Date        |
| 22 | 4           | lung metastases                         | 520   | 534 | Oncological          |

# Assertion Result

|    | sentence_id | chunks                                  | begin | end | entities            | assertion |
|----|-------------|-----------------------------------------|-------|-----|---------------------|-----------|
| 0  | 0           | computed tomography                     | 24    | 42  | Imaging_Test        | Past      |
| 1  | 0           | CT                                      | 45    | 46  | Imaging_Test        | Past      |
| 2  | 0           | mass                                    | 112   | 115 | Tumor_Finding       | Present   |
| 3  | 1           | Pap smear                               | 120   | 128 | Pathology_Test      | Past      |
| 4  | 1           | atypical glandular cells                | 173   | 196 | Pathology_Result    | Present   |
| 5  | 1           | adenocarcinoma                          | 213   | 226 | Cancer_Dx           | Possible  |
| 6  | 2           | pathologic specimen                     | 233   | 251 | Pathology_Test      | Past      |
| 7  | 2           | extension                               | 260   | 268 | Invasion            | Present   |
| 8  | 2           | tumor                                   | 277   | 281 | Tumor_Finding       | Present   |
| 9  | 2           | enlarged                                | 349   | 356 | Lymph_Node_Modifier | Present   |
| 10 | 3           | tumor                                   | 409   | 413 | Tumor_Finding       | Present   |
| 11 | 3           | papillary serous ovarian adenocarcinoma | 430   | 468 | Oncological         | Present   |
| 12 | 4           | lung metastases                         | 520   | 534 | Oncological         | Present   |


# Relation Extraction Result

|    | sentence | entity1_begin | entity1_end | chunk1    | entity1              | entity2_begin | entity2_end | chunk2          | entity2              | relation       | confidence |
|----|----------|---------------|-------------|-----------|----------------------|---------------|-------------|-----------------|----------------------|----------------|------------|
| 1  | 0        | 104           | 110         | ovarian   | Site_Other_Body_Part | 112           | 115         | mass            | Tumor_Finding        | is_location_of | 0.922661   |
| 2  | 1        | 120           | 128         | Pap smear | Pathology_Test       | 213           | 226         | adenocarcinoma  | Cancer_Dx            | is_finding_of  | 0.52542114 |
| 3  | 2        | 277           | 281         | tumor     | Tumor_Finding        | 298           | 312         | fallopian tubes | Site_Other_Body_Part | is_location_of | 0.9026299  |
| 4  | 2        | 277           | 281         | tumor     | Tumor_Finding        | 315           | 322         | appendix        | Site_Other_Body_Part | is_location_of | 0.6649267  |

Model Information

Model Name: explain_clinical_doc_oncology
Type: pipeline
Compatibility: Healthcare NLP 5.2.1+
License: Licensed
Edition: Official
Language: en
Size: 1.9 GB

Included Models

  • DocumentAssembler
  • SentenceDetectorDLModel
  • TokenizerModel
  • WordEmbeddingsModel
  • MedicalNerModel
  • NerConverterInternalModel
  • MedicalNerModel
  • NerConverterInternalModel
  • MedicalNerModel
  • NerConverterInternalModel
  • MedicalNerModel
  • NerConverterInternalModel
  • MedicalNerModel
  • NerConverterInternalModel
  • MedicalNerModel
  • NerConverterInternalModel
  • MedicalNerModel
  • NerConverterInternalModel
  • ChunkMergeModel
  • ChunkMergeModel
  • AssertionDLModel
  • PerceptronModel
  • DependencyParserModel
  • RelationExtractionModel
  • RelationExtractionModel
  • AnnotationMerger