[Paper Review] Distinguishing Human Generated Text From ChatGPT Generated Text Using Machine Learning
The paper presents a ML-based approach using TF-IDF features to distinguish human-written text from ChatGPT-generated text, evaluating 11 classifiers and finding Extremely Randomized Trees performs best with 77% accuracy on GPT-3.5 data.
ChatGPT is a conversational artificial intelligence that is a member of the generative pre-trained transformer of the large language model family. This text generative model was fine-tuned by both supervised learning and reinforcement learning so that it can produce text documents that seem to be written by natural intelligence. Although there are numerous advantages of this generative model, it comes with some reasonable concerns as well. This paper presents a machine learning-based solution that can identify the ChatGPT delivered text from the human written text along with the comparative analysis of a total of 11 machine learning and deep learning algorithms in the classification process. We have tested the proposed model on a Kaggle dataset consisting of 10,000 texts out of which 5,204 texts were written by humans and collected from news and social media. On the corpus generated by GPT-3.5, the proposed algorithm presents an accuracy of 77%.
Motivation & Objective
- Motivate the need to distinguish human and AI-generated text due to misinformation and ethical concerns.
- Propose a machine learning pipeline using TF-IDF vectorization to classify text as human- or ChatGPT-generated.
- Evaluate a broad set of traditional and deep learning classifiers to identify effective detectors on a GPT-3.5-based dataset.
Proposed method
- Balance dataset via undersampling.
- Vectorize text with TF-IDF to capture term importance.
- Train and evaluate 11 classifiers plus MLP and LSTM using 80/20 train/test split.
- Use majority voting for ensemble-like behavior in tree-based models.
- Report metrics including accuracy, precision, recall, F1-score, and MCC.
Experimental results
Research questions
- RQ1Can a machine learning model reliably distinguish human-written text from ChatGPT-generated text on a GPT-3.5-based corpus.
- RQ2Which machine learning or deep learning algorithms are most effective for this detection task with TF-IDF features?
- RQ3How do preprocessing choices (e.g., stop word removal) and data balancing affect classification performance?
- RQ4What is the comparative performance across traditional ML and neural network approaches on the given dataset?
Key findings
- Extra Tree (Extremely Randomized Trees) classifier achieves the highest accuracy of 0.77 and MCC of 0.54.
- Random Forest and SVM also perform relatively well with accuracies around 0.75–0.76.
- K-Nearest Neighbor and Decision Tree show poorer performance on this dataset.
- Deep learning models (MLP and LSTM) attain high training accuracy but lower test performance.
- TF-IDF with 80:20 split and undersampling balancing yields effective discrimination between human and ChatGPT text.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.