Evidence map›Paper›PMID 34889749›Full record

ArticleJMIR medical informatics2021

A BERT-Based Generation Model to Transform Medical Texts to SQL Queries for Electronic Medical Records: Model Development and Validation.

Youcheng Pan, Chenghao Wang, Baotian Hu, Yang Xiang, Xiaolong Wang, Qingcai Chen, Junjie Chen, Jingcheng Du

Abstract read
In one paragraph

Article in JMIR medical informatics, 2021. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 7 papers.

0numbers the graph read from it
0cells of the map it votes in
7citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

7 citing papers in PubMed.

  1. Article
  2. Article
  3. Article
  4. LeafAI: query generator for clinical cohort discovery rivaling a human programmer.Journal of the American Medical Informatics Association : JAMIA · 2023
    Article
  5. quEHRy: a question answering system to query electronic health records.Journal of the American Medical Informatics Association : JAMIA · 2023
    Article
  6. Towards Understanding the Generalization of Medical Text-to-SQL Models and Datasets.AMIA ... Annual Symposium proceedings. AMIA Symposium · 2023
    Article
  7. Article
4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

8 authors.

Youcheng PanIntelligent Computing Research Center, Harbin Institute of Technology, Shenzhen, China.ORCID https://orcid.org/0000-0002-8270-5455
Chenghao WangIntelligent Computing Research Center, Harbin Institute of Technology, Shenzhen, China.ORCID https://orcid.org/0000-0001-8761-1215
Baotian HuIntelligent Computing Research Center, Harbin Institute of Technology, Shenzhen, China.ORCID https://orcid.org/0000-0001-7490-684X
Yang XiangPeng Cheng Laboratory, Shenzhen, China.ORCID https://orcid.org/0000-0003-1395-6805
Xiaolong WangIntelligent Computing Research Center, Harbin Institute of Technology, Shenzhen, China.ORCID https://orcid.org/0000-0001-9003-4252
Qingcai ChenIntelligent Computing Research Center, Harbin Institute of Technology, Shenzhen, China.ORCID https://orcid.org/0000-0001-8473-7293
Junjie ChenIntelligent Computing Research Center, Harbin Institute of Technology, Shenzhen, China.ORCID https://orcid.org/0000-0002-0483-303X
Jingcheng DuUniversity of Texas Health Science Center at Houston, Houston, TX, United States.ORCID https://orcid.org/0000-0002-0322-4566

Funding

No grant is acknowledged in the PubMed record.

6 · The paper itself

Abstract

backgroundElectronic medical records (EMRs) are usually stored in relational databases that require SQL queries to retrieve information of interest. Effectively completing such queries can be a challenging task for medical experts due to the barriers in expertise. Existing text-to-SQL generation studies have not been fully embraced in the medical domain.

objectiveThe objective of this study was to propose a neural generation model that can jointly consider the characteristics of medical text and the SQL structure to automatically transform medical texts to SQL queries for EMRs.

methodsWe proposed a medical text-to-SQL model (MedTS), which employed a pretrained Bidirectional Encoder Representations From Transformers model as the encoder and leveraged a grammar-based long short-term memory network as the decoder to predict the intermediate representation that can easily be transformed into the final SQL query. We adopted the syntax tree as the intermediate representation rather than directly regarding the SQL query as an ordinary word sequence, which is more in line with the tree-structure nature of SQL and can also effectively reduce the search space during generation. Experiments were conducted on the MIMICSQL dataset, and 5 competitor methods were compared.

resultsExperimental results demonstrated that MedTS achieved the accuracy of 0.784 and 0.899 on the test set in terms of logic form and execution, respectively, which significantly outperformed the existing state-of-the-art methods. Further analyses proved that the performance on each component of the generated SQL was relatively balanced and offered substantial improvements.

conclusionsThe proposed MedTS was effective and robust for improving the performance of medical text-to-SQL generation, indicating strong potential to be applied in the real medical scenario.

Indexed as

BERTelectronic medical recordgrammar-based decodingtext-to-SQL generationtree-structured intermediate representation

Identifiers

PMID34889749
PMCPMC8701710

What OpenQuestion holds

Textmetadata
LicenceCC BY
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.