An Approach to Detect Large Language Model Generated Firmware for Arduino Platform

In modern education, learning Science, Technology, Engineering, and Mathematics (STEM) has become an essential requirement. Physical computing, embedded systems, and Internet of Things (IoT) have been widely used in STEM education and the Arduino platform has emerged as a de facto standard for teaching and learning them. However, with the recent advancements in Artificial Intelligence (AI), students are tempted to over-relay on Large Language Models (LLMs). As a result, the auto-generation of software source codes by students using LLMs has become a significant threat to achieving the Intended Learning Outcomes (ILOs) of their course of study. Unlike standard software source code developed for general-purpose computing, firmware developed for the Arduino platform directly interacts with hardware components and consists of specific syntaxes. As a result, existing AI-based Auto Code Detectors underperform in detecting auto-generated source code for the Arduino platform. This paper presents an approach for detecting LLM-generated firmware source code for the Arduino platform using code stylometry features. The proposed approach evaluates lexical and syntactic features to differentiate LLM-generated and human-written firmware source codes for the Arduino platform. The results demonstrate a significant mean accuracy of 0.91, indicating that the proposed approach can accurately classify whether code is written by a human or generated by an LLM.

Authors

Institutions

Publication Details

Published
2025-02-19
DOI
https://doi.org/10.1109/icarc64760.2025.10962917
Primary Topic
Advanced Data Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Approach to Detect Large Language Model Generated Firmware for Arduino Platform

Thareendhra Wijayasiriwardhane, Rajani Gunawardhana
Advanced Data Processing Techniques
article

An Approach to Detect Large Language Model Generated Firmware for Arduino Platform

Thareendhra Wijayasiriwardhane, Rajani Gunawardhana
article en

Abstract

In modern education, learning Science, Technology, Engineering, and Mathematics (STEM) has become an essential requirement. Physical computing, embedded systems, and Internet of Things (IoT) have been widely used in STEM education and the Arduino platform has emerged as a de facto standard for teaching and learning them. However, with the recent advancements in Artificial Intelligence (AI), students are tempted to over-relay on Large Language Models (LLMs). As a result, the auto-generation of software source codes by students using LLMs has become a significant threat to achieving the Intended Learning Outcomes (ILOs) of their course of study. Unlike standard software source code developed for general-purpose computing, firmware developed for the Arduino platform directly interacts with hardware components and consists of specific syntaxes. As a result, existing AI-based Auto Code Detectors underperform in detecting auto-generated source code for the Arduino platform. This paper presents an approach for detecting LLM-generated firmware source code for the Arduino platform using code stylometry features. The proposed approach evaluates lexical and syntactic features to differentiate LLM-generated and human-written firmware source codes for the Arduino platform. The results demonstrate a significant mean accuracy of 0.91, indicating that the proposed approach can accurately classify whether code is written by a human or generated by an LLM.

University of Kelaniya (LK)
Openalex Percentile: Top 92%
Advanced Data Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.