Coin_flipper at eHealth-KD Challenge 2019: Voting LSTMs for Key Phrases and Semantic Relation Identification Applied to Spanish eHealth Texts

Neus Català, Mario Martín

Abstract

The "coin_flipper" team achieved a second-place finish in the eHealth-KD 2019 Challenge by developing a domain-agnostic NLP pipeline for Spanish medical text. Their approach utilized a stacked bidirectional LSTM (bi-LSTM) architecture enhanced by two primary innovations: a differentiable "surrogate F1" loss function that directly optimizes the competition's evaluation metric, and an ensemble strategy using majority voting across 15 randomly initialized models. This system demonstrates that general-purpose NLP tools can compete with domain-specific or transformer-heavy models in specialized fields like healthcare.

Introduction

Automatically extracting structured information from electronic health records (EHRs) is critical for modern medical informatics. The eHealth-KD 2019 Challenge focused on Spanish medical documents, requiring participants to solve two subtasks: Key Phrase Identification (classifying entities like diseases or treatments) and Semantic Relation Detection (identifying relationships between those entities).

A significant hurdle in such competitions is the discrepancy between training objectives and evaluation metrics. While neural networks typically minimize Cross-Entropy loss, performance is judged by the F1 score. The coin_flipper team addressed this by creating a differentiable approximation of the F1 score to use during training, while ensuring their architecture remained domain-agnostic to allow for easy portability to other languages or fields.

Methodology

Architecture and Input

The core of the system is a stacked 2-layer bidirectional LSTM. Unlike many contemporary systems that rely on heavy transformers like BERT, this architecture was designed to be lightweight and efficient. The model takes two primary inputs for each word:

  1. FastText Word Embeddings: Pre-trained on the Spanish Billion Word Corpus to capture morphological nuances and handle out-of-vocabulary terms.
  2. One-Hot Encoded Part-of-Speech (PoS) Tags: Generated using the spaCy library to provide grammatical context.
The stacked bi-LSTM architecture used for Key Phrase Identification, combining FastText embeddings and PoS tags.

Surrogate F1 Loss Function

Standard F1 metrics are non-differentiable because they rely on discrete counts of true/false positives. To bridge this gap, the authors implemented a "soft" F1 metric. By using the continuous probability outputs (0 to 1) from the final sigmoid layer, they calculated "soft-true positives" and "soft-false positives." Minimizing $1 - F1_{soft}$ allowed the network to directly optimize the target metric, which proved particularly effective for the highly imbalanced labels found in medical sequence tagging.

Ensemble by Majority Voting

To mitigate the high variance inherent in training LSTMs on small datasets, the team employed an ensemble of 15 separate models for each entity and relation type. Each model differed only in its random weight initialization. Final predictions were determined via simple majority voting, with a validation set used to prune underperforming outlier models.

Evaluation and Results

The system was evaluated on the eHealth-KD 2019 Corpus, which included a training set of 600 sentences and a hidden test set. The competition featured three scenarios: a full end-to-end pipeline (Scenario 1), entity identification only (Scenario 2), and relation detection only (Scenario 3).

Performance comparison between the baseline, the top-performing BERT-based system, and the coin_flipper Voting LSTMs.

As shown in the results table, the Voting LSTM system achieved an F1 score of 62.18% in the main pipeline task (Scenario 1), securing 2nd place overall. While it narrowly trailed the BERT-based winner in F1, it demonstrated significantly higher precision (74.54% vs 65.06%), suggesting that the ensemble and pruning strategies were highly effective at reducing false positives.

Discussion and Conclusion

The success of the coin_flipper system highlights the power of direct metric optimization and ensemble stability. By splitting the complex multi-class problem into separate binary classification ensembles, the team was able to handle label sparsity effectively.

However, the system struggled with recall in Scenario 3, particularly for rare semantic relations like part-of or entails that had very few training examples. Future work will focus on data augmentation techniques, such as back-translation, to bolster the model's ability to recognize these infrequent but important medical relationships.

Summary updated

BibTeX
@inproceedings{catala2019coin,
  author = {Neus Català and Mario Martín},
  title = {{Coin\_flipper at eHealth-KD Challenge 2019: Voting LSTMs for Key Phrases and Semantic Relation Identification Applied to Spanish eHealth Texts}},
  booktitle = {IberLEF@SEPLN},
  year = {2019},
}
Figure