Your browser doesn't support javascript.
loading
MedT5SQL: a transformers-based large language model for text-to-SQL conversion in the healthcare domain.
Marshan, Alaa; Almutairi, Anwar Nais; Ioannou, Athina; Bell, David; Monaghan, Asmat; Arzoky, Mahir.
Affiliation
  • Marshan A; School of Computer Science and Electronic Engineering, University of Surrey, Guildford, United Kingdom.
  • Almutairi AN; College of Business Studies, PAAET, Kuwait City, Kuwait.
  • Ioannou A; Surrey Business School, University of Surrey, Guildford, United Kingdom.
  • Bell D; Department of Computer Science, Brunel University London, London, United Kingdom.
  • Monaghan A; School of Business and Management, Royal Holloway, University of London, London, United Kingdom.
  • Arzoky M; Department of Computer Science, Brunel University London, London, United Kingdom.
Front Big Data ; 7: 1371680, 2024.
Article de En | MEDLINE | ID: mdl-38988646
ABSTRACT

Introduction:

In response to the increasing prevalence of electronic medical records (EMRs) stored in databases, healthcare staff are encountering difficulties retrieving these records due to their limited technical expertise in database operations. As these records are crucial for delivering appropriate medical care, there is a need for an accessible method for healthcare staff to access EMRs.

Methods:

To address this, natural language processing (NLP) for Text-to-SQL has emerged as a solution, enabling non-technical users to generate SQL queries using natural language text. This research assesses existing work on Text-to-SQL conversion and proposes the MedT5SQL model specifically designed for EMR retrieval. The proposed model utilizes the Text-to-Text Transfer Transformer (T5) model, a Large Language Model (LLM) commonly used in various text-based NLP tasks. The model is fine-tuned on the MIMICSQL dataset, the first Text-to-SQL dataset for the healthcare domain. Performance evaluation involves benchmarking the MedT5SQL model on two optimizers, varying numbers of training epochs, and using two datasets, MIMICSQL and WikiSQL.

Results:

For MIMICSQL dataset, the model demonstrates considerable effectiveness in generating question-SQL pairs achieving accuracy of 80.63%, 98.937%, and 90% for exact match accuracy matrix, approximate string-matching, and manual evaluation, respectively. When testing the performance of the model on WikiSQL dataset, the model demonstrates efficiency in generating SQL queries, with an accuracy of 44.2% on WikiSQL and 94.26% for approximate string-matching.

Discussion:

Results indicate improved performance with increased training epochs. This work highlights the potential of fine-tuned T5 model to convert medical-related questions written in natural language to Structured Query Language (SQL) in healthcare domain, providing a foundation for future research in this area.
Mots clés

Texte intégral: 1 Collection: 01-internacional Base de données: MEDLINE Langue: En Journal: Front Big Data Année: 2024 Type de document: Article Pays d'affiliation: Royaume-Uni

Texte intégral: 1 Collection: 01-internacional Base de données: MEDLINE Langue: En Journal: Front Big Data Année: 2024 Type de document: Article Pays d'affiliation: Royaume-Uni