MedPromptExtract (Medical Data Extraction Tool): Anonymization and Hi-fidelity Automated data extraction using NLP and prompt engineering (2405.02664v3)
Abstract: Introduction: The labour-intensive nature of data extraction from sources like discharge summaries (DS) poses significant obstacles to the digitisation of medical records particularly for low- and middle-income countries (LMICs). In this paper we present a completely automated method MedPromptExtract to efficiently extract data from DS while maintaining confidentiality. Methods: The source of data was Discharge Summaries (DS) from Kokilaben Dhirubhai Ambani Hospital (KDAH) of patients having Acute Kidney Injury (AKI). A pre-existing tool EIGEN which leverages semi-supervised learning techniques for high-fidelity information extraction was used to anonymize the DS, NLP was used to extract data from regular fields. We used Prompt Engineering and LLM(LLM) to extract custom clinical information from free flowing text describing the patients stay in the hospital. Twelve features associated with occurrence of AKI were extracted. The LLM responses were validated against clinicians annotations. Results: The MedPromptExtracttool first subjected DS to the anonymization pipeline which took three seconds per summary. Successful anonymization was verified by clinicians, thereafter NLP pipeline extracted structured text from the anonymized pdfs at the rate of 0.2 seconds per summary with 100% accuracy.Finally DS were analysed by the LLM pipeline using Gemini Pro for the twelve features. Accuracy metrics were calculated by comparing model responses to clinicians annotations with seven features achieving AUCs above 0.9, indicating high fidelity of the extraction process. Conclusion: MedPromptExtract serves as an automated adaptable tool for efficient data extraction from medical records with a dynamic user interface. Keywords: Digitizing Medical Records, Automated Anonymisation, Information Retrieval, LLMs, Prompt Engineering
- Artificial intelligence and healthcare in india. Technical report, ICT India Working Paper, 2021.
- Aacc guidance document on laboratory investigation of acute kidney injury. The journal of applied laboratory medicine, 6(5):1316–1337, 2021.
- Arif Khwaja. Kdigo clinical practice guidelines for acute kidney injury. Nephron Clinical Practice, 120(4):c179–c184, 2012.
- A qualitative analysis of the optimal discharge summary: Effective communication of medication changes for older patients. Journal of Applied Gerontology, 42(5):871–878, 2023.
- Why digital medicine depends on interoperability. NPJ digital medicine, 2(1):79, 2019.
- Mindee. doctr: Document text recognition. https://github.com/mindee/doctr, 2021.
- Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
- Sundar Pichai. Introducing gemini: Our largest and most capable ai model, Dec 2023.
- Data programming: Creating large training sets, quickly. Advances in neural information processing systems, 29, 2016.
- Mark A Rothstein. Is deidentification sufficient to protect health privacy in research? The American Journal of Bioethics, 10(9):3–11, 2010.
- Eigen: Expert-informed joint learning aggregation for high-fidelity information extraction from document images, 2023.
- Layoutlm: Pre-training of text and layout for document image understanding. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD ’20, page 1192–1200, New York, NY, USA, 2020. Association for Computing Machinery.
- Roomani Srivastava (1 paper)
- Suraj Prasad (23 papers)
- Lipika Bhat (1 paper)
- Sarvesh Deshpande (1 paper)
- Barnali Das (28 papers)
- Kshitij Jadhav (9 papers)