DIFFERENCE BETWEEN HUMAN AND AI-GENERATED CODE

Journal Title: International scientific journal Science and Innovation - Year 2025, Vol 4, Issue 1

Abstract

The emergence of artificial intelligence (AI) in software engineering has profoundly transformed the programming domain, with AI-driven code generation platforms such as GitHub Copilot and OpenAI Codex facilitating swift and automated code creation. Nonetheless, the disparities between AI-generated and human-crafted code remain a vital area of investigation. This research delves into techniques to distinguish between them, emphasizing lexical, syntactic, and semantic attributes. A thorough dataset comprising code snippets from various programming languages was compiled and examined through machine learning algorithms, including Support Vector Machines (SVM), Random Forest (RF), and XGBoost (XGB). Findings suggest that AI-generated code often presents foreseeable patterns, structured syntax, and uniform keyword utilization, whereas human-authored code demonstrates greater diversity, originality, and adaptability in problem-solving. Syntactic aspects, particularly control flow intricacy and nesting levels, proved to be the most effective in differentiation, with the combined feature set achieving an accuracy of 92.8%. Despite these encouraging results, challenges such as evolving AI algorithms and dataset constraints persist. This study highlights the necessity for robust identification frameworks to uphold code quality, sustainability, and ethical compliance in AI-supported programming environments.

Authors and Affiliations

K. E. Niyazmetova

Keywords

Related Articles

ANALYSIS OF TEST RESULTS WITHOUT PREJUDICE TO PRODUCT QUALITY

The use of statistical methods makes it possible to understand the nature, degree and causes of variability, which contributes to both solving and preventing problems caused by such variability. Such methods are extremel...

FORMING AN ASTRONOMICAL WORLDVIEW USING DIGITAL TECHNOLOGIES OUTSIDE THE CLASSROOM

It is appropriate to form students' worldviews in teaching astronomy. In the article, from the pedagogical point of view, the formation of students' outlook using digital technologies in extracurricular activities is pre...

INTERNATIONAL EXPERIENCE AND MODERN APPROACHES IN TEACHING FOREIGN LANGUAGES

In today's globalized world, the ability to communicate in foreign languages has become increasingly important. With the rise of international travel, business, and cultural exchanges, knowing a foreign language has many...

CATEGORY "TRANSITIONAL NATURE OF THE MOVEMENT" IN THE CODEX CUMANICUS MANUSCRIPT

The study examines the category of the verb "transitional character of movement", manifested in terms of pronunciation. The purpose of the article is to unify the meaning of the category "transitional nature of movement"...

APPLICATION OF QUEST TECHNOLOGY IN COLLOID CHEMISTRY LESSONS

This article contains information about modern pedagogical technologies, the effective use of modern pedagogical technologies in colloid chemistry classes and their importance.

Download PDF file
  • EP ID EP760242
  • DOI 10.5281/zenodo.14826525
  • Views 105
  • Downloads 0

How To Cite

K. E. Niyazmetova (2025). DIFFERENCE BETWEEN HUMAN AND AI-GENERATED CODE. International scientific journal Science and Innovation, 4(1), -. https://europub.co.uk/articles/-A-760242