Abstract
Identifying invasive fungal infections (IFIs) in clinical pathology reports is a critical yet labor-intensive task. Traditional dictionary-based named entity recognition (NER) often fails due to the high lexical variation and contextual ambiguity inherent in specialized medical shorthand. This paper presents a Conditional Random Field (CRF) approach to automate the extraction of IFI-related concepts from the CHIFIR corpus. By incorporating morphological and contextual features, the CRF model achieves substantial improvements in precision and F1 scores over dictionary-based baselines, particularly in resolving ambiguous terms and identifying novel phrases.
Introduction
Invasive fungal infections (IFIs) pose a significant risk to immunocompromised patients, necessitating rapid and accurate detection. However, clinical reports—specifically cytology and histopathology—are often written in specialized shorthand, utilizing abbreviations and subjective "hedging" language (e.g., "suggestive of" vs. "confirmed").
Automating the identification of IFI markers has historically relied on dictionary-based NER, which uses exact string matching. This method suffers from two primary limitations:
- Lexical Variation: Inability to match synonyms or related terms (e.g., "lung" vs. "pulmonary").
- Contextual Ambiguity: Failure to distinguish between different uses of the same word (e.g., "organism" referring to a fungus vs. a bacterium).
This study explores the use of machine learning to move beyond simple matching toward a model that leverages the surrounding text for better disambiguation.
Methodology
The researchers implemented a Conditional Random Field (CRF) model using the CRFSuite library. Unlike dictionary methods that treat tokens in isolation, CRFs are statistical sequence labeling models that consider the state of neighboring tokens.
The model's performance relies heavily on feature engineering. Instead of relying solely on the word itself, the model utilizes various descriptors to capture linguistic patterns.
Key features included:
- Morphological Descriptors: 3-character prefixes and suffixes to capture medical Greek/Latin roots (e.g., "-cosis").
- Casing and Formatting: Capitalization patterns, hyphens, and numeric presence.
- Contextual Windows: Analysis of immediate preceding and following words to resolve ambiguity.
Hyperparameters ($c1$ and $c2$ regularization) were optimized using the L-BFGS algorithm through cross-validation.
Dataset: The CHIFIR Corpus
The study utilized the Cytology and Histopathology Invasive Fungal Infection Reports (CHIFIR) corpus, consisting of 283 reports for 201 patients. The reports include macroscopic assessments and conclusive diagnoses. The data was annotated across nine categories, including FungalDescriptor, Invasiveness, Stain, and SampleType. For the experiment, 230 reports were used for development and 53 for the final test set.
Results and Discussion
The CRF model demonstrated a significant performance leap over the dictionary baseline, particularly in precision and overall F1 scores.
Performance Gains
On the test set, the CRF model achieved near-perfect precision in several categories where dictionary methods previously failed. For instance, the SampleType category (identifying organs or tissues) saw precision rise from 0.14 to 1.00. Similarly, the Positive category (affirmative expressions) improved from 0.03 to 1.00. The overall F1 score for the Negative category (negating expressions) increased from 0.26 to 1.00, demonstrating the model's ability to handle linguistic variation.
Generalization and Context
A major strength of the CRF was its ability to generalize. It correctly identified unseen phrases like "branching hyphae" by combining learned knowledge of the constituent words. Furthermore, by utilizing context, the model drastically reduced false positives for ambiguous terms like "organism," only flagging them when the surrounding text indicated a fungal context.
Limitations
Despite these gains, some categories like Invasiveness remained challenging (F1 of 0.67) due to low frequency in the dataset and complex multi-word structures. Additionally, the model occasionally over-relied on formatting features, such as misclassifying all-caps abbreviations (e.g., "RUL" for Right Upper Lung) as Stain names (e.g., "PAS").
Conclusion
The study confirms that for small, highly specialized clinical datasets, a well-tuned CRF model outperforms traditional dictionary methods. By capturing morphological proxies for meaning and utilizing contextual windows, the CRF provides a robust framework for automating IFI detection. Future work will focus on expanding the CHIFIR corpus and exploring deep learning architectures to handle more complex linguistic structures.
Summary updated