Detection of ChatGPT Fake Science with the xFakeSci Learning Algorithm

Ahmed Abdeen Hamed, Xindong Wu · DOI

Abstract

Generative AI tools exemplified by ChatGPT are becoming a new reality. This study is motivated by the premise that "AI generated content may exhibit a distinctive behavior that can be separated from scientific articles". In this study, we show how articles can be generated using means of prompt engineering for various diseases and conditions. We then show how we tested this premise in two phases and prove its validity. Subsequently, we introduce xFakeSci, a novel learning algorithm, that is capable of distinguishing ChatGPT-generated articles from publications produced by scientists. The algorithm is trained using network models driven from both sources. As for the classification step, it was performed using 300 articles per condition. The actual label steps took place against an equal mix of 50 generated articles and 50 authentic PubMed abstracts. The testing also spanned publication periods from 2010 to 2024 and encompassed research on three distinct diseases: cancer, depression, and Alzheimer's. Further, we evaluated the accuracy of the xFakeSci algorithm against some of the classical data mining algorithms (e.g., Support Vector Machines, Regression, and Naive Bayes). The xFakeSci algorithm achieved F1 scores ranging from 80% to 94%, outperforming common data mining algorithms, which scored F1 values between 38% and 52%. We attribute the noticeable difference to the introduction of calibration and a proximity distance heuristic, which underscores this promising performance. Indeed, the prediction of fake science generated by ChatGPT presents a considerable challenge. Nonetheless, the introduction of the xFakeSci algorithm is a significant step on the way to combating fake science.

Introduction

The explosion of Generative AI, specifically Large Language Models (LLMs) like ChatGPT, has created a double-edged sword for academia. While these tools can assist in writing, they are also capable of generating highly convincing, yet entirely fabricated, scientific abstracts. This "fake science" threatens the integrity of the global knowledge base, especially when filtered through predatory journals or social media. Existing detection methods often struggle with scientific text because LLMs are specifically optimized to mimic the formal tone and structure of research. The authors of this paper aimed to find a "distinctive behavior" in AI-generated content—a digital fingerprint—that separates it from genuine human-authored scientific literature.

Data Generation and Prompt Engineering

To test the premise that AI content is structurally distinct, the researchers first needed a robust dataset of synthetic science. They utilized systematic prompt engineering to generate 3,952 simulated PubMed-style abstracts using the gpt-3.5-turbo-16k model. These abstracts focused on three medical contexts: Alzheimer’s, cancer, and depression.

Algorithm 1: The computational process for generating simulated PubMed-style abstracts using ChatGPT.

This synthetic dataset was compared against authentic literature retrieved from the PubMed archive, spanning three distinct time periods from 2010 to 2024 to ensure the "human" baseline was representative of modern scientific writing.

The xFakeSci Methodology

The core innovation of this study is the xFakeSci algorithm. Unlike standard classifiers that look at word frequency in isolation, xFakeSci treats a document as a network.

  1. Network Construction: The algorithm uses TF-IDF (Term Frequency-Inverse Document Frequency) to extract bigrams (pairs of consecutive words). These bigrams serve as the building blocks for a graph where words are nodes and their co-occurrences are edges.
  2. Topological Analysis: The researchers discovered that AI-generated networks are "too connected." ChatGPT-generated networks have fewer nodes but significantly more edges than human-written ones, creating dense, repetitive word-association patterns.
  3. Calibration & Heuristics: To prevent overfitting, the authors introduced a calibration step. They calculated the ratio of core bigrams against the total word count. For example, in Alzheimer’s data, ChatGPT scores were roughly 0.27–0.30, while human-authored papers scored significantly lower (0.14–0.16).
  4. Proximity Distance: If a new document’s ratio falls into a "gray area," the algorithm uses a proximity heuristic to assign the label based on mathematical closeness to known ranges.

Results and Comparative Analysis

The xFakeSci algorithm was benchmarked against classical algorithms including Support Vector Machines (SVM), Naive Bayes, and Logistic Regression. The results were stark: xFakeSci achieved F1 scores between 80% and 94%, while classical algorithms languished between 38% and 52%.

Feature comparison between the NeoNet algorithm and the proposed xFakeSci algorithm.

As shown in the comparison above, xFakeSci introduces several features not supported by previous iterations like NeoNet, including data-driven calibration and proximity distance heuristics. These additions allow it to handle the specific structural nuances of fake scientific articles more effectively than general-purpose data mining tools.

Conclusion

While the prediction of fake science remains a considerable challenge, the xFakeSci algorithm represents a significant step forward. By focusing on the structural "fingerprint" of how words are linked rather than just the words themselves, researchers have found a reliable way to defend the integrity of scientific literature against the rising tide of synthetic content.

Summary updated

BibTeX
@inproceedings{hamed2024detection,
  author = {Ahmed Abdeen Hamed and Xindong Wu},
  title = {{Detection of ChatGPT Fake Science with the xFakeSci Learning Algorithm}},
  booktitle = {Scientific},
  year = {2024},
  doi = {10.1038/s41598-024-66784-6},
}
Figure