|
Algorithm 1: Bot detection via CB-MTE Framework |
| input: Twitter bot detection dataset T = {u1, u2, …, un} |
| output: Predicted labels (0: human, 1: bot) |
| 1: |
for each user in T do
|
| 2: |
metadata feature extraction:
|
| 3: |
textual feature extraction: ← Equations (1)–(4) |
| 4: |
Compute structural features for user : |
| 5: |
← Equations (5)–(7) |
| 6: |
graph feature extraction: |
| 7: |
← Equation (8) |
| 8: |
Concatenate with DeepWalk embedding: |
| 9: |
← Equation (9) |
| 10: |
Reduce dimensionality via UMAP: |
| 11: |
← Equations (10)–(14) |
| 12: |
fused via vector concatenation:
|
| 13: |
predict label using CatBoost classifier: ← Equations (15)–(22) |
| 14: |
end for |