Manuscript Offprint

arXiv:2610.26730

EpiLens: Lightweight RAG for Epidemiological Knowledge Acquisition

Vincenzo Perri, Ciro Cattuto, Daniela Paolotti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

To prepare for future outbreaks, researchers need to know what studies have been done and what data they use. Mapping a large literature by hand is slow, while large language models alone can misstate or conflate sources. We present EpiLens, a lightweight, open-source retrieval-augmented generation package that applies a fixed retrieval template and output schema to every paper in a corpus and links outputs to source passages. We build a corpus of 2,297 papers from the sources of a multi-pathogen parameter study and evaluate EpiLens's paper-classification workflow against 214 manually labelled papers. Without task-specific training data, the classifier matches or exceeds the tested supervised and zero-shot baselines across four tasks. The study's early extraction sheets cite published sources for 327 estimates. We link each estimate to a cited document or to corpus studies included by a review. Then, we use the classifier's labels to compare the papers associated with different parameters and pathogens. EpiLens labels more papers linked to reproduction numbers than fatality risks as model-based (54% versus 22%, compared with 62% versus 24% in the manual labels). The gap is consistent with the frequent use of transmission models to estimate reproduction numbers and persists within each of five pathogens compared. Beyond the contrast between parameters, the model-based share of papers linked to incubation-period estimates differs by pathogen: 55% for SARS-CoV-2 versus 6% for mpox.

Keywords: Retrieval-augmented generation, Large language models, Digital epidemiology, Knowledge acquisition, Literature analysis, Zero-shot classification, Meta-research

1 Introduction

If a new pandemic started tomorrow, we would again face basic questions. Which data streams are available and where? How have they been used in past outbreaks? Which analyses depended on non-traditional data such as mobility traces, economic signals, or social media activity, and under what conditions were those data shared? What kinds of papers lie behind the parameter estimates we would reach for, such as reproduction numbers or fatality risks, and how often are they model-based or present simulated data? Recent work in digital epidemiology and non-traditional data has shown both the potential and the limitations of these sources for crisis response [1–3]. Yet, answering such questions still requires the manual screening of hundreds (if not thousands) of papers.

At the same time, large language models (LLMs) have advanced to the point where they can support a wide range of knowledge-intensive tasks, including search-like question answering, summarisation, and information extraction across scientific and technical domains [4–6]. Nevertheless, these models remain prone to hallucination: they produce fluent but non-factual statements or conflate sources, which undermines their reliability as stand-alone knowledge repositories [7]. Retrieval-augmented generation (RAG) addresses this issue by coupling LLMs with explicit document retrieval, so that generation is conditioned on retrieved evidence and not just on the model's parameters [8, 9]. For epidemiology, where provenance, transparency, and reviewability are essential, such architectures provide a natural way to exploit the strengths of LLMs while maintaining stricter epistemic standards.

This paper’s aim is not to automate epidemiological judgment. Instead, we focus on reallocating human effort. RAG-based tooling can handle the mechanical processing of research literature at scale (search, extraction, structured labelling), while researchers focus on intentionality, domain expertise, and interpretation. This assistance can be particularly relevant during emergencies, when time pressure makes it difficult to maintain both breadth and depth in literature surveillance. Figure 1 summarises this division of labour as a design principle.

We argue that epidemiology can benefit from AI-assisted knowledge acquisition, and we develop EpiLens, an open-source RAG package designed to support this shift. Prior work already establishes the strengths of retrieval-augmented generation (RAG) in grounding model outputs, as well as its vulnerabilities to low-quality corpora, retrieval errors, and context misuse [8–10]. Therefore, we do not seek to re-establish these findings, but focus on the design of workflows that apply retrieval-augmented generation systematically across a corpus. EpiLens provides structured workflows: reusable analyses that fix the retrieval template and constrain the model's output with an explicit schema, then apply that same template identically to every paper in a corpus. Constraining the task in this way is what makes the analysis scalable and trustworthy: every paper is interrogated the same way, the output is validated against the schema, and the result is machine-readable rather than free-form. We then use a multi-pathogen corpus as a case study to show what becomes possible when such workflows are applied to questions of data use, availability, and geographic coverage, and to the source literature associated with compiled parameter estimates.

Figure

Fig. 1 Division of labour between EpiLens and the researcher. Large-scale, unstructured outbreak literature (left) is systematically processed by EpiLens to resolve a corpus into distinct, structured dimensions. The dimensions shown (data type, accessibility, geography, and paper type) are the examples we carry through this paper. They are not fixed by the system, which the user configures for their own questions. By handling the mechanical extraction and provenance of these variables, the system provides filtered evidence to the researcher (right). This separation lets the researcher move from labour-intensive sorting of documents to higher-level work: defining label vocabularies, auditing edge cases, and interpreting the resulting patterns.

References (50)