Digitala Vetenskapliga Arkivet

Planned maintenance
A system upgrade is planned for 17/11-2026, at 12:00-13:00. During this time DiVA will be unavailable.
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
Investigating what AI detection tools consider to be generative AI in code and text
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Undersökning av vad AI-detektorer anser vara generativ AI i kod och text (Swedish)
Abstract [en]

Detection tools for artificial intelligence have the purpose of detecting the likelihood that some content is generated by generative AI. Similarly to the generative tools themselves, the detection tools follow complex algorithms to return the results of the likelihood. As such, whether the detection tools are reliable or not, altering parts of the content, even minor changes, can lead to different results. In this thesis, we tried to find out what the effects of making specific changes to parts of text and code could have on three different detection tools, for the purpose of finding out what is considered more AI or not by them. We found that overall in text, using symbols such as ampersands or having choppy sentence lengths caused texts to be considered more likely to be human-written, while heavily simplified text was considered more likely to be AI generated. For C++ code, on the other hand, the introduction of lambda functions was deemed to be less likely to be AI generated. However, this was not consistent in all AI detectors, showing that the detectors do not work the same and are not built the same.

Abstract [sv]

Detektionsverktyg för artificiell intelligens har syftet att upptäcka sannolikheten att ett innehåll är genererat av generativ AI. Likt de generativa verktygen följer detektionsverktygen komplexa algoritmer för att ge resultat om sannolikheten. Oavsett om detekteringsverktygen är tillförlitliga eller inte kan ändringar av delar av innehållet, hur små de än är, leda till olika resultat. I denna avhandling försökte vi ta reda på vilka effekter specifika ändringar på delar av text och kod hade på tre olika detektionsverktyg, i syfte att få reda på vad som anses vara mer AI eller inte av dem. Vi fann att det i text generellt ansågs vara mer sannolikt att vara skrivet av en människa när texten innehöll symboler som och-tecken eller med hackiga meningslängder, medan väldigt simplifierad text ansågs vara mer sannolikt genererat av AI. För C++ kod å andra sidan var det främst introduktionen av lambda funktioner som ansågs vara mindre sannolikt att vara AI genererat. Dock var det inte konsekvent i alla AI detektorer, något som visar att detectorerna fungerar olika och är uppbygda på olika sätt.

Place, publisher, year, edition, pages
2025. , p. 24
Series
TRITA-EECS-EX ; 2025:322
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367661OAI: oai:DiVA.org:kth-367661DiVA, id: diva2:1985741
Supervisors
Examiners
Available from: 2025-08-05 Created: 2025-07-27 Last updated: 2025-08-05Bibliographically approved

Open Access in DiVA

fulltext(395 kB)323 downloads
File information
File name FULLTEXT01.pdfFile size 395 kBChecksum SHA-512
7eac7759e6f288ffe41e0ac19eff08e58b57aded0fb3bc3628200d873bff7aa4f3804e4ae4e84e85c71d57f096cbb45017af22ca9496eac4c9800cde4caab159
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 325 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: 566 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