Testing Cyber-Physical Systems Using NLP Models
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesis
Abstract [en]
This thesis investigated the effectiveness of natural language processing models
in automating test generation for Flutter applications that use Bluetooth com-
munication, an aspect of cyber-physical systems that remains underexplored.
The study evaluated four open-source natural language processing-based code
generation models: StarCoder, GPT-NeoX, CodeGen, and CodeT5, focusing
on their ability to generate end-to-end and integration tests. A structured
experimental methodology was used to assess each model’s output across three
levels of prompt complexity. The results showed that while models such as
StarCoder demonstrate some logical structure, none of the models produced
fully functional tests without manual intervention. Edge case handling, such as
unstable connections and device compatibility, proved particularly challenging.
The findings highlight the current limitations of small-scale natural language
processing models in cyber-physical system testing scenarios and emphasize the
need for more advanced models, improved prompt strategies, and domain-specific
fine-tuning to close the performance gap between human and machine-generated
tests.
Place, publisher, year, edition, pages
2025. , p. 52
Keywords [en]
Cyber-Physical Systems, Natural Language Processing, Bluetooth Low Energy, CPS, NLP, BLE, Test Automation, Flutter, Prompt Engineering, Test Generation
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:hj:diva-68467OAI: oai:DiVA.org:hj-68467DiVA, id: diva2:1968954
External cooperation
Combitech AB
Subject / course
JTH, Computer Engineering
Supervisors
Examiners
2025-06-182025-06-132025-10-13Bibliographically approved