Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Automatic Transformation of natural language requirements to PLCOPen XML using Large Language Models (LLM)
Mälardalen University, School of Innovation, Design and Engineering.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 30 credits / 45 HE creditsStudent thesisAlternative title
Automatic Transformation of natural language requirements to Programmable Logic Controller Open Extensible Markup Language using Large Language Models (LLM) (English)
Abstract [en]

The transformation from requirements engineering (RE) into design artifacts presents a valuable opportunity for software development in contexts such as industrial automation. This thesis explores the feasibility of using Natural Language Processing (NLP) through Large Language Models (LLMs) to convert textual requirements into structured outputs, such as Function Block Diagrams (FBDs) in PLCopen XML format. The research aims to mitigate the challenges of manual transformation processes, including inefficiencies, ambiguity, and the growing complexity of software systems.

Leveraging offline, portable, and open-source LLMs, the study evaluates their ability to generate accurate and semantically aligned structured FBD outputs. Experiments were conducted using synthetic datasets with varying levels of complexity and interdependence. Results demonstrate that larger models excel in producing high-quality outputs, particularly when supported by prompt engineering techniques. However, these models face challenges in handling specific nuances. Smaller models, while faster, exhibit limitations in managing complex or ambiguous requirements.

This thesis contributes to the field by providing insights into the practical deployment of AI-driven solutions for RE (NLP4RE), emphasizing the importance of balancing automation with human oversight. The work highlights future research opportunities, including optimizing resource-efficient models, expanding datasets to real-world scenarios, and posting all the code used in public repositories to enhance reproducibility.

Place, publisher, year, edition, pages
2025. , p. 81
Keywords [en]
Automatic transformation, natural language processing, NLP, large language models, LLM, requirements engineering, RE, PLCopen XML, function block diagrams, FBD, software automation, industrial automation, prompt engineering, AI-driven requirements transformation, text-to-code generation, semantic analysis, computational constraints, domain-specific AI, hybrid AI models, clustering methods, structured output generation, model fine-tuning, resource-efficient AI, synthetic datasets, ambiguity resolution, AI in railway industry, engineering AI, software design automation, automated requirements processing, AI-driven software development, explainability in AI, privacy-preserving AI, NLP4RE, software verification, AI model evaluation, structured data generation, AI-assisted software engineering, text-to-XML transformation, model performance metrics, BLEU score, METEOR score, ROUGE score, AI for industrial applications, machine learning for requirements engineering, AI-powered software pipelines, automated software documentation.
National Category
Electrical Engineering, Electronic Engineering, Information Engineering Computer Systems
Identifiers
URN: urn:nbn:se:mdh:diva-70073OAI: oai:DiVA.org:mdh-70073DiVA, id: diva2:1935490
External cooperation
Alstom, Västerås, Sweden
Subject / course
Computer Science
Presentation
2025-01-30, Universitetsplan 1, 722 20 Västerås, Sweden, Västerås, 23:01 (English)
Supervisors
Examiners
Available from: 2025-02-17 Created: 2025-02-06 Last updated: 2025-02-17Bibliographically approved

Open Access in DiVA

DVA501_NicolasRestrepoTorres.pdf(1050 kB)91 downloads
File information
File name FULLTEXT01.pdfFile size 1050 kBChecksum SHA-512
50c6959819667e4f8d51c4a934f08e3806d7e3a51f33d9999d7f117dda2217f2c9e4c8555932ad74ba5db5e287806e1e1d9269eb9e31968b61530376ba441c70
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Restrepo Torres, Nicolás
By organisation
School of Innovation, Design and Engineering
Electrical Engineering, Electronic Engineering, Information EngineeringComputer Systems

Search outside of DiVA

GoogleGoogle Scholar
Total: 91 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 673 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf