PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 19, 2026Technologies0 citationsOpen Access

Comparative Evaluation of Rule-Based and Transformer-Based Text-Mining Methods for Detecting SGLT2 Inhibitor Mentions in Unstructured Clinical Free Text

ANAttila Csaba Nagy

Key Points

  • The central aim is to evaluate the effectiveness of various text-mining methods in identifying SGLT2 inhibitor mentions in clinical narratives.
  • Compared four text-mining approaches: keyword search, regular expressions, fuzzy string matching, and transformer-based token classification.
  • Analyzed clinical documents from the University of Debrecen Clinical Centre, focused on patients with type 2 diabetes.
  • Evaluated method performance against a manually annotated reference set using confusion matrices and classification metrics.
  • Simple keyword search identified 1.49% of documents with SGLT2 mentions, while regular expressions identified 7.21%, fuzzy matching 8.55%, and the transformer model only 0.71%.
  • Fuzzy string matching had the highest recall and F1-score overall.
  • Regular expression matching showed a solid balance between precision and recall.
  • The transformer-based method exhibited high precision but much lower recall without domain-specific tuning.

Abstract

Much of the patient data recorded in electronic health records is stored as unstructured free text. Extracting medication information from such data is essential, particularly for antidiabetic drugs such as sodium–glucose cotransporter-2 (SGLT2) inhibitors, but remains challenging due to spelling variability, abbreviations, and non-standard documentation practices. This study compared four text-mining approaches, simple keyword search, regular expression–based matching, fuzzy string matching, and a transformer-based token classification baseline, for detecting SGLT2 inhibitor mentions in Hungarian clinical narratives. Clinical documents were obtained from the University of Debrecen Clinical Centre and covered patients with type 2 diabetes mellitus (ICD-10: E11) from 2018 and 2019. Searches targeted both generic and brand names and SGLT-related abbreviations. In the 2019 dataset (n = 5383), simple keyword search identified 1.49% of documents as containing an SGLT2 inhibitor mention, compared with 7.21% using regular expressions, 8.55% using fuzzy matching, and 0.71% using the transformer-based baseline. Mean execution times were 0.07 s, 1.64 s, 5.13 s, and 34.71 s, respectively. Method performance was further evaluated against a manually annotated reference set from 2018 using confusion matrices and standard classification metrics. Fuzzy string matching achieved the highest recall and F1-score, while regular expression-based matching provided a strong balance between precision and recall. The transformer-based baseline showed high precision but substantially lower recall in the absence of domain-specific fine-tuning. Overall, similarity-based fuzzy matching offered the most favorable balance between detection performance and computational efficiency for identifying SGLT2 inhibitor mentions in unstructured Hungarian clinical text.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Attila Csaba Nagy (2026) studied this question.

synapsesocial.com/papers/6996a7e3ecb39a600b3edf64https://doi.org/10.3390/technologies14020122
Ask AI
Helpful
Bookmark
Share
View Full Paper