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

SERVICES TO INDIVIDUALS BY COMMERCIAL BANKS AMONG ASIAN COUNTRIES AND UZBEKISTAN

This paper examines the range of services provided to individual customers by commercial banks in Asia, with a specific focus on Uzbekistan. As the banking sector plays a critical role in driving economic growth, the stu...

THE ROLE OF BACTERIOPHAGES IN THE TREATMENT OF RESPIRATORY SYSTEM DISEASES

Diseases of the respiratory system, including bronchitis, pneumonia, and other respiratory infections, are one of the serious threats to human health. Antibiotics are widely used in the treatment of these diseases, but i...

INVESTMENT CREDIT IN UZBEKISTAN

This article describes the role of investment in the industry of the Republic of Uzbekistan and issues related to the territorial features of the implementation of activities. In the effective implementation of investmen...

SYNERGIC EFFECT OF FIRE RETARDANTS AND THEIR ANALOGUES FOR TEXTILE MATERIALS

This work compares the thermal stability of natural textile materials, flame retardants and natural textile materials modified with flame retardants, and also studies the mechanisms of thermal stability and synergistic e...

ASSESSMENT METHODOLOGY OF FUNCTIONAL LITERACY OF STUDENTS IN THE PROCESS OF TEACHING CHEMISTRY

The given article presents the analysis of the methodology for assessing the functional literacy of students in the process of teaching chemistry. Changes in the education system include thematic resources, conducting sc...

Download PDF file
  • EP ID EP760242
  • DOI 10.5281/zenodo.14826525
  • Views 23
  • 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