Datasets:
|
Download README.md from Keyvanazami/fda-510k-predicate-retrieval: direct link, hf CLI and curl.
- Browser
- Download file 4.39 kB
-
https://huggingface.co/datasets/Keyvanazami/fda-510k-predicate-retrieval/resolve/main/README.md
- Command line
-
hf download hf://datasets/Keyvanazami/fda-510k-predicate-retrieval/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Keyvanazami/fda-510k-predicate-retrieval/resolve/main/README.md
4.39 kB
| language: | |
| - en | |
| task_categories: | |
| - text-retrieval | |
| - sentence-similarity | |
| tags: | |
| - medical-devices | |
| - fda | |
| - 510k | |
| - retrieval | |
| pretty_name: FDA 510(k) predicate retrieval | |
| size_categories: | |
| - 10K<n<100K | |
| configs: | |
| - config_name: corpus | |
| data_files: corpus.jsonl.gz | |
| - config_name: queries | |
| data_files: | |
| - split: train | |
| path: queries_train.jsonl.gz | |
| - split: validation | |
| path: queries_dev.jsonl.gz | |
| - split: test | |
| path: queries_test.jsonl.gz | |
| # FDA 510(k) predicate retrieval | |
| A retrieval benchmark built from public FDA 510(k) summary documents. The task: given a new medical device's | |
| *Indications for Use* and *Device Description*, rank earlier 510(k) clearances so that the **predicate devices** its | |
| summary cites come first. | |
| Fine-tuned model: [Keyvanazami/embeddinggemma-300m-510k-predicate](https://huggingface.co/Keyvanazami/embeddinggemma-300m-510k-predicate). | |
| ## Files | |
| | File | Rows | Content | | |
| | --- | --- | --- | | |
| | `corpus.jsonl.gz` | 52,123 | One device per row, sorted by decision date (1993 to 2026): `k`, `date`, `product_code`, `panel`, `device_name`, `applicant`, `ifu`, `description` | | |
| | `queries_train.jsonl.gz` | 24,766 | Subjects cleared 2015 to 2023 (22,580 with at least one predicate in the corpus) | | |
| | `queries_dev.jsonl.gz` | 2,842 | Subjects cleared in 2024 (2,635 retrievable) | | |
| | `queries_test.jsonl.gz` | 5,651 | Subjects cleared 2025 to 2026 (5,308 retrievable) | | |
| | `train_pairs.jsonl.gz` | 41,281 | (subject `q`, predicate `p`, `role`) training pairs | | |
| | `dataset_card.json` | | Build configuration and counts | | |
| | `embeddings/*.npy` | | Precomputed L2-normalised float16 vectors (see below) | | |
| Query fields: `ifu`, `description`, `gold` (cited predicates with `role` = `primary` or `additional`), | |
| `gold_in_corpus`, `gold_primary_in_corpus`, `reference` (cited reference devices, never gold), `n_candidates`, | |
| `n_same_code_candidates`, `retrievable`. | |
| ## Evaluation protocol | |
| - **Input text**: `"Indications for Use: " + ifu + "\n" + "Device Description: " + description`, for queries and | |
| corpus documents alike. | |
| - **Candidates**: the corpus is sorted by date, and a query's candidates are the first `n_candidates` rows (devices | |
| cleared strictly before it). | |
| - **Gold**: `gold_in_corpus` (primary + additional predicates). Each document has exactly one primary predicate. | |
| - **Leakage control**: every K-number in the text is replaced by `[K-NUMBER]`; in queries, multi-word names of the | |
| cited predicates are replaced by `[DEVICE]`. | |
| - **Metrics**: Recall@10 over a query's in-corpus gold, Hit@k for any gold, and Hit@k for the primary predicate alone. | |
| Only queries with `retrievable = true` are scored. | |
| ## Precomputed embeddings | |
| `embeddings/<model>.docs.npy` is aligned with the rows of `corpus.jsonl.gz`. `embeddings/<model>.queries.npy` is | |
| aligned with `queries_order` in `embeddings/index.json` (the retrievable dev queries followed by the retrievable test | |
| queries). Models: the fine-tuned EmbeddingGemma (1,024-token inputs), and untuned `google/embeddinggemma-300m`, | |
| `BAAI/bge-m3`, `BAAI/bge-base-en-v1.5`, `Qwen/Qwen3-Embedding-0.6B`, `sentence-transformers/all-MiniLM-L6-v2` | |
| (512-token inputs, each with its recommended query prompt). | |
| ## Construction | |
| Built from the openFDA 510(k) export and the summary PDFs on accessdata.fda.gov: PDF text extraction with OCR for | |
| scanned pages, rule-based detection of the Indications for Use and Device Description sections, and rule-based | |
| extraction of cited K-numbers with predicate roles. Subjects are substantially-equivalent decisions with a summary. | |
| ## Limitations | |
| - Labels are extracted automatically. In a check of 100 summaries, the gold set had precision about 0.71 and recall | |
| about 0.95; over-inclusion is mostly reference devices and an applicant's own prior clearances. | |
| - About 12% of cited predicates are outside the corpus (no summary PDF on the FDA server, a 510(k) statement in place | |
| of a summary, or missing sections). | |
| - OCR errors are present, mostly in documents from before 2005. | |
| - The benchmark measures recovery of historical citations. An uncited device is not necessarily an unsuitable predicate. | |
| ## Source and terms | |
| The underlying documents are 510(k) summaries published by the U.S. Food and Drug Administration, and the metadata | |
| comes from openFDA. This repository adds the extraction, labels, splits and embeddings. Not affiliated with or | |
| endorsed by the FDA. | |