CoChat

Differentiating Chat Generative Pretrained Transformer from Humans: Detecting ChatGPT-Generated Text and Human Text Using Machine Learning

Open access

The DOI matches its Crossref record; 19 of the 20 references it cites were found in a registry or an index, and 1 are not checked yet.

Abstract

Recently, the identification of human text and ChatGPT-generated text has become a hot research topic. The current study presents a Tunicate Swarm Algorithm with Long Short-Term Memory Recurrent Neural Network (TSA-LSTMRNN) model to detect both human as well as ChatGPT-generated text. The purpose of the proposed TSA-LSTMRNN method is to investigate the model’s decision and detect the presence of any particular pattern. In addition to this, the TSA-LSTMRNN technique focuses on designing Term Frequency–Inverse Document Frequency (TF-IDF), word embedding, and count vectorizers for the feature extraction process. For the detection and classification processes, the LSTMRNN model is used. Finally, the TSA is employed for selecting the parameters for the LSTMRNN approach, which enables improved detection performance. The simulation performance of the proposed TSA-LSTMRNN technique was investigated on benchmark databases, and the outcome demonstrated the advantage of the TSA-LSTMRNN system over other recent methods with a maximum accuracy of 93.17% and 93.83% on human- and ChatGPT-generated datasets, respectively.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.3390/math11153400

Cites

19 of 20 references verified0 citation errors · 0 not checkable

Statistics

Figures

Figure 1 Overall flow of the TSA-LSTMRNN approach. Figure 1. Overall flow of the TSA-LSTMRNN approach.
Figure 1 Overall flow of the TSA-LSTMRNN approach. Figure 1. Overall flow of the TSA-LSTMRNN approach.CC-BY · From the PDF
Figure 2 Flowchart of TSA. Figure 2. Flowchart of TSA.
Figure 2 Flowchart of TSA. Figure 2. Flowchart of TSA.CC-BY · From the PDF
Figure 3 Average outcomes of the TSA-LSTMRNN approach on human-generated text dataset. Figure 3. Average outcomes of the TSA-LSTMRNN approach on human-generated text dataset. human-generated text databases.
Figure 3 Average outcomes of the TSA-LSTMRNN approach on human-generated text dataset. Figure 3. Average outcomes of the TSA-LSTMRNN approach on human-generated text dataset. human-generated text databases.CC-BY · From the PDF
Image 4
CC-BY · From the PDF
Figure 5 Loss curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 5. Loss curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 5. Loss curve of the TSA-LSTMRNN approach on human-generated text dataset.
Figure 5 Loss curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 5. Loss curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 5. Loss curve of the TSA-LSTMRNN approach on human-generated text dataset.CC-BY · From the PDF
Figure 6 PR curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 6. PR curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 6. PR curve of the TSA-LSTMRNN approach on human-generated text dataset.
Figure 6 PR curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 6. PR curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 6. PR curve of the TSA-LSTMRNN approach on human-generated text dataset.CC-BY · From the PDF
Figure 7 ROC curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 7. ROC curve of the TSA-LSTMRNN approach on human-generated text dataset.
Figure 7 ROC curve of the TSA-LSTMRNN approach on human-generated text dataset. Figure 7. ROC curve of the TSA-LSTMRNN approach on human-generated text dataset.CC-BY · From the PDF
Figure 8 Average outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 8. Average outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.
Figure 8 Average outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 8. Average outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.CC-BY · From the PDF
Figure 9 Accuracy curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 9. Accuracy curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 9. Accuracy curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.
Figure 9 Accuracy curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 9. Accuracy curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 9. Accuracy curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.CC-BY · From the PDF
Figure 10 Loss curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 10. Loss curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 10. Loss curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.
Figure 10 Loss curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 10. Loss curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 10. Loss curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.CC-BY · From the PDF
Figure 11 PR curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 11. PR curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 11. PR curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.
Figure 11 PR curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 11. PR curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 11. PR curve of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.CC-BY · From the PDF
Figure 12 ROC curve of the TSA-LSTMRNN approach on ChatGPT generated text dataset. Figure 12. ROC curve of the TSA-LSTMRNN approach on ChatGPT generated text dataset. Figure 12. ROC curve of the TSA-LSTMRNN approach on ChatGPT generated text dataset.
Figure 12 ROC curve of the TSA-LSTMRNN approach on ChatGPT generated text dataset. Figure 12. ROC curve of the TSA-LSTMRNN approach on ChatGPT generated text dataset. Figure 12. ROC curve of the TSA-LSTMRNN approach on ChatGPT generated text dataset.CC-BY · From the PDF
Figure 13 𝐴𝑐𝑐𝑢𝑦 outcomes of the TSA-LSTMRNN approach on human-generated text dataset. Figure 13. Accuy outcomes of the TSA-LSTMRNN approach on human-generated text dataset.
Figure 13 𝐴𝑐𝑐𝑢𝑦 outcomes of the TSA-LSTMRNN approach on human-generated text dataset. Figure 13. Accuy outcomes of the TSA-LSTMRNN approach on human-generated text dataset.CC-BY · From the PDF
Figure 14 𝐴𝑐𝑐𝑢𝑦 outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 14. Accuy outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.
Figure 14 𝐴𝑐𝑐𝑢𝑦 outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset. Figure 14. Accuy outcomes of the TSA-LSTMRNN approach on ChatGPT-generated text dataset.CC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 20 references

Research works printed but not linked: 5

  1. Yu, P.; Chen, J.; Feng, X.; Xia, Z. CHEAT: A Large-scale Dataset for Detecting ChatGPT-writtEn AbsTracts. arXiv 2023, arXiv:2304.12008. · arXiv
  2. Liao, W.; Liu, Z.; Dai, H.; Xu, S.; Wu, Z.; Zhang, Y.; Huang, X.; Zhu, D.; Cai, H.; Liu, T.; et al. Differentiate ChatGPT-generated and Human-written Medical Texts. arXiv 2023, arXiv:2304.11567. · arXiv
  3. Alamleh, H.; AlQahtani, A.A.S.; ElSaid, A. Distinguishing Human-Written and ChatGPT-Generated Text Using Machine Learning. In 2023 Systems and Information Engineering Design Symposium (SIEDS); IEEE: Piscataway, NJ, USA, 2023; pp. 154-158.
  4. Chen, Y.; Kang, H.; Zhai, V.; Li, L.; Singh, R.; Ramakrishnan, B. GPT-Sentinel: Distinguishing Human and ChatGPT Generated Content. arXiv 2023, arXiv:2305.07969. · arXiv
  5. Pardos, Z.A.; Bhandari, S. Learning gain differences between ChatGPT and human tutor-generated algebra hints. arXiv 2023, arXiv:2302.06871. · arXiv

Cited by

Metadata

Authors
Katib, I., Assiri, F. Y., Abdushkour, H. A., Hamed, D., & Ragab, M.
Affiliations
  • King Abdulaziz University (SA)
  • University of Jeddah (SA)
  • Al-Azhar University (EG)
Corresponding author
Katib, Iyad
Venue
Mathematics
Publisher
MDPI AG
Published
2023-08-03
Volume
11
Issue
15
Pages
3400
ISSN
2227-7390 (ISSN-L)
OpenAlex
W4385541881
Cited by
38
References
16
Citations by year
2026: 7 · 2025: 13 · 2024: 18
FWCI
3.36
Type
journal article
Language
en
Open access
Locations
  • Mathematics (publishedVersion, cc-by)
  • RePEc: Research Papers in Economics (submittedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Funders
Institutional Fund Projects (IFPFP-266-22)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Authorship Attribution and Profiling
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Digital Media Forensic Detection
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
AI-generated text detection, tunicate swarm algorithm, hyperparameter optimization, TF-IDF feature extraction, word embeddings, count vectorizer, generative AI detection

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.