| Literature DB >> 35680983 |
Ahmed Abbasi1, Abdul Rehman Javed2, Farkhund Iqbal3, Zunera Jalil1, Thippa Reddy Gadekallu4, Natalia Kryvinska5.
Abstract
With time, textual data is proliferating, primarily through the publications of articles. With this rapid increase in textual data, anonymous content is also increasing. Researchers are searching for alternative strategies to identify the author of an unknown text. There is a need to develop a system to identify the actual author of unknown texts based on a given set of writing samples. This study presents a novel approach based on ensemble learning, DistilBERT, and conventional machine learning techniques for authorship identification. The proposed approach extracts the valuable characteristics of the author using a count vectorizer and bi-gram Term frequency-inverse document frequency (TF-IDF). An extensive and detailed dataset, "All the news" is used in this study for experimentation. The dataset is divided into three subsets (article1, article2, and article3). We limit the scope of the dataset and selected ten authors in the first scope and 20 authors in the second scope for experimentation. The experimental results of proposed ensemble learning and DistilBERT provide better performance for all the three subsets of the "All the news" dataset. In the first scope, the experimental results prove that the proposed ensemble learning approach from 10 authors provides a better accuracy gain of 3.14% and from DistilBERT 2.44% from the article1 dataset. Similarly, in the second scope from 20 authors, the proposed ensemble learning approach provides a better accuracy gain of 5.25% and from DistilBERT 7.17% from the article1 dataset, which is better than previous state-of-the-art studies.Entities:
Mesh:
Year: 2022 PMID: 35680983 PMCID: PMC9184563 DOI: 10.1038/s41598-022-13690-4
Source DB: PubMed Journal: Sci Rep ISSN: 2045-2322 Impact factor: 4.996
Figure 1Authorship identification process.
Figure 2Total number of publications with article count.
Figure 3Top 10 authors in article1 dataset.
Figure 4Top 10 authors in article2 dataset.
Figure 5Top 10 authors in article3 dataset.
Figure 6Graphical Representation of Proposed Approach for Authorship identification and classification.
Environment setup.
| Parameters | Setting |
|---|---|
| COding framework | Jupyter notebook |
| OS | Windows 10 Home |
| CPU | Xeon Processor |
| GPU | NVIDIA GeForce GTX 1050 |
| RAM | 8GB |
| Programming Language | Python |
| Python Version | 3.8 |
All Feature Extraction and algorithm Results for Article1 Dataset with 10 Authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | Count vec | 95 | 95 | 96 | 95 |
| TF-IDF | 95 | 95 | 95 | 95 | |
| XGB | Count vec | 96 | 96 | 96 | 96 |
| TF-IDF | 96 | 95 | 95 | 95 | |
| MLP | Count vec | 94 | 94 | 94 | 94 |
| TF-IDF | 94 | 94 | 94 | 94 | |
| LR | Count vec | 95 | 95 | 96 | 95 |
| TF-IDF | 94 | 94 | 95 | 94 | |
| Ensemble | Count vec | 97 | 97 | 97 | 97 |
| TF-IDF | 97 | 97 | 97 | 97 | |
| 89 | 89 | 90 | 89 |
All Feature Extraction and algorithm Results for Article1 Dataset with 20 Authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | Count vec | 73 | 73 | 75 | 72 |
| TF-IDF | 73 | 73 | 75 | 72 | |
| XGB | Count vec | 73 | 72 | 73 | 73 |
| TF-IDF | 72 | 72 | 71 | 71 | |
| MLP | Count vec | 74 | 74 | 78 | 75 |
| TF-IDF | 72 | 72 | 72 | 71 | |
| LR | Count vec | 76 | 76 | 76 | 76 |
| TF-IDF | 70 | 70 | 70 | 69 | |
| Ensemble | Count vec | 79 | 79 | 81 | 79 |
| TF-IDF | 75 | 75 | 74 | 74 | |
| DistilBERT | 77 | 77 | 79 | 76 |
All Feature Extraction and algorithm Results for Article2 Dataset with 10 Authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | Count vec | 85 | 86 | 86 | 86 |
| TF-IDF | 80 | 80 | 81 | 79 | |
| XGB | Count vec | 87 | 88 | 88 | 88 |
| TF-IDF | 83 | 83 | 84 | 83 | |
| MLP | Count vec | 86 | 86 | 87 | 86 |
| TF-IDF | 85 | 85 | 85 | 85 | |
| LR | Count vec | 86 | 86 | 86 | 86 |
| TF-IDF | 82 | 82 | 83 | 82 | |
| Ensemble | Count vec | 89 | 89 | 90 | 90 |
| TF-IDF | 89 | 89 | 89 | 89 | |
| 94 | 94 | 95 | 94 |
All Feature Extraction and algorithm Results for Article2 Dataset with 20 Authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | Count vec | 78 | 78 | 79 | 77 |
| TF-IDF | 76 | 76 | 77 | 75 | |
| XGB | Count vec | 80 | 80 | 80 | 80 |
| TF-IDF | 76 | 76 | 78 | 75 | |
| MLP | Count vec | 85 | 85 | 85 | 84 |
| TF-IDF | 80 | 81 | 83 | 81 | |
| LR | Count vec | 86 | 86 | 86 | 86 |
| TF-IDF | 79 | 79 | 81 | 79 | |
| Ensemble | Count vec | 87 | 87 | 87 | 86 |
| TF-IDF | 82 | 82 | 84 | 83 | |
| 90 | 90 | 95 | 90 |
All Feature Extraction and algorithm Results for Article3 Dataset with 10 Authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | Count vec | 71 | 71 | 75 | 69 |
| TF-IDF | 71 | 71 | 72 | 69 | |
| XGB | Count vec | 81 | 81 | 81 | 81 |
| TF-IDF | 80 | 80 | 80 | 80 | |
| MLP | Count vec | 79 | 79 | 79 | 79 |
| TF-IDF | 75 | 75 | 77 | 74 | |
| LR | Count vec | 80 | 80 | 81 | 81 |
| TF-IDF | 70 | 70 | 74 | 68 | |
| Ensemble | Count vec | 85 | 85 | 85 | 84 |
| TF-IDF | 83 | 83 | 84 | 82 | |
| 70 | 69 | 72 | 69 |
All Feature Extraction and algorithm Results for Article3 Dataset with 20 Authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | Count vec | 64 | 64 | 66 | 62 |
| TF-IDF | 64 | 64 | 69 | 63 | |
| XGB | Count vec | 68 | 68 | 68 | 68 |
| TF-IDF | 66 | 66 | 67 | 66 | |
| MLP | Count vec | 73 | 73 | 75 | 73 |
| TF-IDF | 71 | 70 | 71 | 69 | |
| LR | Count vec | 70 | 70 | 71 | 70 |
| TF-IDF | 66 | 66 | 69 | 65 | |
| Ensemble | Count vec | 74 | 74 | 76 | 74 |
| TF-IDF | 73 | 73 | 75 | 73 | |
| 65 | 65 | 80 | 66 |
Performance comparison of proposed approach and baseline approach with 10 authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | BOW | 92.66 | 95.2 | 92.66 | 93.87 |
| LSA | 73.2 | 76.13 | 73.2 | 74.01 | |
| SVM | BOW | 92 | 95.6 | 92 | 92.43 |
| LSA | 78.66 | 83.86 | 78.66 | 79.27 | |
| LR | BOW | 93.86 | 96.13 | 93.86 | 94.10 |
| LSA | 82.53 | 84.62 | 82.53 | 82.70 | |
| BERT | BERT | 86.56 | 85.19 | 88 | 86 |
| Ensemble | Count vec | 97 | 97 | 97 | 97 |
| TF-IDF | 97 | 97 | 97 | 97 | |
| 89 | 89 | 90 | 89 | ||
| Gain | 3.14 | 0.87 | 3.14 | 2.90 | |
Figure 7Accuracy comparison of transformer-based models using top 10 authors.
Performance comparison of proposed approach and baseline approach with 20 authors.
| Algorithm | Features | Accuracy% | Recall% | Precision% | F1-score% |
|---|---|---|---|---|---|
| RF | BOW | 72 | 72 | 73.3 | 72 |
| LSA | 58 | 58 | 56.55 | 58 | |
| SVM | BOW | 70 | 70 | 70.87 | 70 |
| LSA | 58.33 | 58.33 | 59.85 | 58 | |
| LR | BOW | 74 | 74 | 74.20 | 74 |
| LSA | 65 | 65 | 64.63 | 65 | |
| BERT | BERT | 70.33 | 66.56 | 70.40 | 67 |
| Ensemble | Count vec | 79 | 79 | 81 | 79 |
| TF-IDF | 75 | 75 | 74 | 74 | |
| 77 | 77 | 79 | 76 | ||
| Gain | 5.25 | 5.00 | 6.80 | 5.00 | |
Figure 8Accuracy comparison of transformer-based models using top 20 authors.