SIA: A Scalable Interoperable Annotation Server for Biomedical Named Entities

Johannes Kirschnick, Philippe Thomas, Roland Roller, Leonhard HennigarXiv 2020 · DOI

TL;DR

SIA (Scalable Interoperable Annotation Server) is an open-source, message-based framework designed to seamlessly combine multiple biomedical named entity recognition (NER) tools into a unified pipeline. By decoupling components using a central message bus, it solves the headache of conflicting software dependencies while easily scaling to process over 70 documents per second.

What Problem Does This Paper Address?

The explosion of biomedical literature makes manual curation impossible, driving the need for automated text mining. While many specialized, open-source Named Entity Recognition (NER) tools exist to extract terms like genes, chemicals, or diseases, stitching them together into a single workflow is notoriously difficult.

Different tools often suffer from "dependency hell"—for instance, two different biomedical taggers might require two conflicting versions of the same underlying library, making them impossible to run natively in the same process. Furthermore, building an architecture that can reliably handle bursts of concurrent requests, fetch documents from external repositories, and respect strict processing deadlines without dropping data remains a major engineering challenge.

Methods

The authors introduce SIA, an architecture built around a central message bus implemented via RabbitMQ. Instead of a tightly coupled monolithic system, SIA splits the workflow into three independent, microservice-like components:

  1. Front End: A lightweight REST gateway that accepts client requests, validates them, and pushes them to a priority queue. It uses the client's deadline to dynamically prioritize urgent tasks.
  2. Back End: A pipeline of message transformers. It splits multi-document requests into individual document tasks, fetches raw text via Corpus Adapters (using exponential backoff to handle flaky network connections), and uses a scatter-gather pattern to distribute text to specific Annotators.
  3. Result Handler: Collects and aggregates the independent annotations, merging overlapping results before sending them back to the client.

Crucially, SIA allows annotators to be hosted externally in separate processes or even on different servers. This completely bypasses dependency conflicts and allows tools written in different programming languages to coexist in the same pipeline. Fault tolerance is baked in: components only acknowledge a message after successful processing, ensuring no data is lost if a server crashes mid-task.

Datasets

For their offline scalability evaluation, the authors used a local dump of 207,551 PubMed articles (specifically files 922 to 928 from the NCBI FTP repository). In live testing during the BeCalm-TIPS benchmarking task, the system dynamically fetched documents from external providers, including PubMed, PMC, and the BeCalm patent and abstract servers.

Key Insights and Ideas

  • External Hosting as an Architectural Cure: Instead of spending weeks trying to resolve conflicting library dependencies (such as ChemSpot and DNorm utilizing different versions of the Banner tagger), SIA treats annotators as isolated black boxes. This makes the entire framework highly extensible and language-agnostic.
  • The Network is the Real Bottleneck: In live deployments, downloading documents from external web services accounted for roughly 50% of the total processing time. This highlights why supporting bulk document downloading is critical for real-world text-mining performance.
  • The Interoperability Tax: Utilizing a message bus introduces a ~10% performance overhead due to message serialization and persistence compared to running standalone tools. However, this is a highly acceptable trade-off for the massive gains in fault tolerance and horizontal scalability.

Key Results

  • High Throughput: In offline tests on a 32-thread server, increasing SIA's parallelism from 1 to 5 threads yielded a 3× speedup, topping out at a throughput of over 70 documents per second before becoming CPU-bound.
  • Battle-Tested Reliability: Deployed in the cloud during the BeCalm-TIPS task, SIA successfully sustained high request volumes, handling a peak of over 14,000 daily requests.
  • Low Latency: For the configured internal annotators, processing an entire annotation request took less than two seconds on average.

Limitations and Future Work

  • Manual Scaling: Currently, scaling the back end requires manual intervention to deploy more instances. The authors point out that a valuable next step would be automating this by coupling back-end replication to input queue length monitoring (autoscaling).
  • Streaming Optimization: To eliminate the 10% message bus overhead, the authors suggest porting SIA to distributed streaming environments like Apache Flink or Apache Spark. However, they note this would require significant engineering effort to replicate their current fault-tolerant aggregation and handle unreliable external corpus adapters.

Summary updated

BibTeX
@misc{kirschnick2020sia,
  author = {Johannes Kirschnick and Philippe Thomas and Roland Roller and Leonhard Hennig},
  title = {{SIA: A Scalable Interoperable Annotation Server for Biomedical Named Entities}},
  year = {2020},
  eprint = {2004.03822},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.03822},
}
Figure