arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16422cs.CLcs.AIcs.LG
收藏

基于BERT深度学习算法的AI生成文本检测与分类

AI-Generated Text Detection and Classification Based on BERT Deep Learning Algorithm

Beijing Yuandian Technology Inc.(北京元典科技有限公司);Nio Inc.(蔚来汽车公司)

Hao Wang, Jianwei Li, Zhengyu Li

AI总结:

本研究提出了一种基于BERT算法的AI生成文本检测模型,通过系统的数据预处理与60/40的训练测试集划分,实验表明该模型准确率高达99.72%且泛化能力良好,为AI生成文本检测提供了有效解决方案。

摘要:

AI生成文本检测在各个领域发挥着越来越重要的作用。在本研究中,我们开发了一种基于BERT算法的高效AI生成文本检测模型,为解决相关问题提供了新思路和新方法。在数据预处理阶段,采取了一系列步骤处理文本,包括转换为小写、分词、去除停用词、词干提取、去除数字和消除多余空格等操作,以确保数据的质量和准确性。通过将数据集按60%和40%的比例划分为训练集和测试集,并观察训练过程中准确率和损失值的变化,我们发现模型在训练过程中表现良好。准确率从初始的94.78%稳步上升至99.72%,而损失值从0.261降至0.021并逐渐收敛,这表明BERT模型能够高精度地检测AI生成的文本,且预测结果正逐渐接近真实分类结果。对训练集和测试集结果的进一步分析显示,在损失值方面,训练集的平均损失为0.0565,而测试集的平均损失为0.0917,显示出略高的损失值。至于准确率,训练集的平均准确率达到98.1%,而测试集的平均准确率为97.71%,两者相差不大,表明模型具有良好的泛化能力。总之,本研究提出的基于BERT算法的AI生成文本检测模型在实验中表现出较高的准确率和稳定性,为相关领域提供了有效的解决方案。

英文摘要:

AI-generated text detection plays an increasingly important role in various fields. In this study, we developed an efficient AI-generated text detection model based on the BERT algorithm, which provides new ideas and methods for solving related problems. In the data preprocessing stage, a series of steps were taken to process the text, including operations such as converting to lowercase, word splitting, removing stop words, stemming extraction, removing digits, and eliminating redundant spaces, to ensure data quality and accuracy. By dividing the dataset into a training set and a test set in the ratio of 60% and 40%, and observing the changes in the accuracy and loss values during the training process, we found that the model performed well during the training process. The accuracy increases steadily from the initial 94.78% to 99.72%, while the loss value decreases from 0.261 to 0.021 and converges gradually, which indicates that the BERT model is able to detect AI-generated text with high accuracy and the prediction results are gradually approaching the real classification results. Further analysis of the results of the training and test sets reveals that in terms of loss value, the average loss of the training set is 0.0565, while the average loss of the test set is 0.0917, showing a slightly higher loss value. As for the accuracy, the average accuracy of the training set reaches 98.1%, while the average accuracy of the test set is 97.71%, which is not much different from each other, indicating that the model has good generalisation ability. In conclusion, the AI-generated text detection model based on the BERT algorithm proposed in this study shows high accuracy and stability in experiments, providing an effective solution for related fields.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑