The BioSample database contains tens of millions of records describing biological samples, but their metadata are submitted largely as key-value pairs with inconsistent field names, terminology and free-text descriptions, limiting search and reuse. Before the DBCLS BioHackathon 2026, we used a pipeline based on locally hosted large language models (LLMs) to extract nine types of biological information (cell line, cell type, tissue, disease, drug, knockout gene, knockdown gene, overexpressed gene and ChIP antigen) from 4.2 million human and mouse BioSample records and map them to ontology terms, producing a harmonised collection of 8.2 million extracted values. During the BioHackathon, we extended this work in three directions. First, we developed an alpha version of a web application for searching this collection by ontology terms and visualising the experimental conditions of selected samples. Second, we developed a provenance-tracing procedure, combining deterministic matching with LLM-based checks, that linked 99% of extracted values to supporting text in the original records. The resulting provenance links showed that although 32 submitted field names accounted for 90% of the evidence, the remaining 10% was spread across more than 6,000 other field names. Third, we developed a procedure in which an LLM assesses mapping correctness and classifies the causes of errors, offering a scalable alternative to building new manually curated gold standards. Our preliminary results show the potential of locally hosted LLMs to harmonise existing BioSample metadata at scale. Future work will validate the LLM-based evaluations with human experts and extend the approach to additional species.

Figures

The flowchart of the error detection and categorization process. Error categories are defined in Table \ref{tab:categories}.
The flowchart of the error detection and categorization process. Error categories are defined in Table \ref{tab:categories}.
Screenshots of the sample search and visualization system. (A) Results of selecting liver as the tissue and searching for ...
Screenshots of the sample search and visualization system. (A) Results of selecting liver as the tissue and searching...Screenshots of the sample search and visualization system. (A) Results of selecting liver as the tissue and searching for liver samples from human RNA-seq experiments. (B) Heatmap showing the number of human RNA-seq samples to which the selected ontology terms were mapped, with 10 disease terms and 10 drug terms specified. (C) Distribution of the experimental conditions investigated under Kras knockout in mouse RNA-seq samples, with Kras specified as the knockout gene. (D) Line graph showing the annual number of submissions of human lung RNA-seq samples.
Contribution of successive provenance-tracing stages, stratified by target attribute. Each extracted value is assigned to ...
Contribution of successive provenance-tracing stages, stratified by target attribute. Each extracted value is assigne...Contribution of successive provenance-tracing stages, stratified by target attribute. Each extracted value is assigned to the first stage that identified acceptable supporting evidence. For legibility, the case-insensitive, normalised, and bag-of-words deterministic strategies are grouped and shown together as “normalised”.
Heterogeneity of submitted BioSample field names. (A) Number of distinct field names required to account for 90% of proven...
Heterogeneity of submitted BioSample field names. (A) Number of distinct field names required to account for 90% of p...Heterogeneity of submitted BioSample field names. (A) Number of distinct field names required to account for 90% of provenance evidence for each target attribute, split into the core needed for 90% coverage, names reused across more than one BioProject, names confined to one BioProject, and names confined to one BioSample (a BioSample with no linked BioProject counts as its own singleton BioProject). Numbers at the first boundary give the names needed for 90% coverage; numbers at bar ends give total distinct names. (B) Mean annual number of distinct field names observed across the nine target attributes in DDBJ RNA-seq BioSample records, 2012–2025, with the annual number of published BioProjects shown for comparison.