- AutorIn
- Kenn Joel Kaubukowski
- Titel
- Ontology-Constrained Knowledge Graph Extraction from Diarized Transcripts using Large Language Models
- Zitierfähige Url:
- https://nbn-resolving.org/urn:nbn:de:bsz:l189-qucosa2-990163
- Datum der Einreichung
- 04.08.2025
- Abstract (EN)
- Natural Language Processing dates back to the early days of computers and its various subfields are still relevant for modern research. With artificial intelligence, more specifically Large Language Models, vast progress has been made in the field and problems that were once being solved using conventional methods can now be solved using models like OpenAI’s GPT-4.1. Even though knowledge graph extraction, being the extraction of named entities and the relations present between them, is one of the subfields receiving less attention than others in the context of Large Language Models (LLMs), research has still been conducted in this area. While the capabilities of various models regarding their general ability to extract knowledge graphs have been tested before, actual use-cases often require the result to be formatted in a specific way while also adhering to one of the well defined syntaxes. As a part of the ERASMUS+ project Agile Competency-Based Learning for Individuals and Teams (ACTIVATE), this thesis presents and analyzes a system within the domain of medical education that uses modern large language models to extract knowledge graphs from diarized transcripts of medical simulation scenarios under the restrictions of a specific ontology. Using a hybrid evaluation method, it shows the performance of different models with varying prompting strategies in this task and discusses the results as well as possibilities for future work. The results show that the task of extracting a knowledge graph from diarized transcripts while adhering to a set of specific restrictions is solvable using current state of the art LLMs.
- Freie Schlagwörter (EN)
- Large Language Models, Knowledge Graph Extraction, Natural Language Processing, Named Entity Recognition, Relation Extraction
- Den akademischen Grad verleihende / prüfende Institution
- Hochschule für Technik, Wirtschaft und Kultur Leipzig, Leipzig
- Version / Begutachtungsstatus
- angenommene Version / Postprint / Autorenversion
- URN Qucosa
- urn:nbn:de:bsz:l189-qucosa2-990163
- Veröffentlichungsdatum Qucosa
- 15.09.2025
- Dokumenttyp
- Masterarbeit / Staatsexamensarbeit
- Sprache des Dokumentes
- Englisch
- Lizenz / Rechtehinweis
CC BY 4.0- Inhaltsverzeichnis
Abstract ii Statutory Declaration iii Acronyms ix 1 Introduction 1 1.1 Motivation 1 1.2 Thesis Structure 2 2 Background 3 2.1 Activity Theory 3 2.2 ACTIVATE Dashboard 5 2.2.1 Overview 5 2.2.2 Ontology and Data Representation 5 2.3 Natural Language Processing 9 2.3.1 Named Entity Recognition 9 2.3.2 Relation Extraction 10 2.4 Large Language Models 11 2.4.1 Decoder Models 12 2.4.2 Encoder Models 13 2.4.3 Hybrid Models 13 2.5 Prompt Engineering 14 2.5.1 Prompting Patterns 14 2.5.2 Prompting Strategies 15 2.6 Knowledge Graph Extraction 18 2.6.1 Conventional Solutions 18 2.6.2 LLM Solutions 19 3 Methodology 20 3.1 Prompting Techniques 21 3.1.1 Base Approach 21 3.1.2 Persona Approach 25 3.1.3 Iterative Approach 26 3.2 Prompt Variations 28 3.2.1 Zero-Shot 29 3.2.2 One-Shot 29 3.2.3 Vocabulary 29 3.3 Development of ActivityGen 31 3.3.1 Backend 31 3.3.2 Frontend 34 4 Evaluation 38 4.1 Evaluation Method 38 4.1.1 Evaluation Data 38 4.1.2 Evaluation Process 40 4.2 Results 44 4.2.1 Model Evaluation 44 4.2.2 Generator Evaluation 46 4.2.3 Transcript Evaluation 48 4.2.4 Temperature Evaluation 50 4.3 Summary and Findings 52 5 Discussion 53 6 Conclusion 57 6.1 Summary 57 6.2 Future Work 58 A System Prompts 60 A.1 Base Prompt 60 A.2 Persona Prompt 61 A.3 Iterative Prompt 62 A.3.1 Setting Extraction 62 A.3.2 Entity Extraction 62 A.3.3 Property Extraction 63 A.3.4 Relation Extraction 63 A.3.5 Tension Extraction 65 A.3.6 TTL Merging 66 A.4 Example 67 B AI-based Tools 70 B.1 Coding and Analysis 70 B.2 Research and Writing 71