File size: 2,104 Bytes
47549c3
49b6160
 
47549c3
49b6160
47549c3
49b6160
47549c3
 
49b6160
 
 
 
 
 
 
47549c3
 
49b6160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
title: Human vs AI Text Detector
emoji: πŸ”
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: apache-2.0
tags:
  - text-classification
  - human-ai-text-attribution
  - african-languages
  - multilingual
  - hata
---

# πŸ” Human vs AI Text Detector

Detect whether text is human-written or AI-generated across multiple African languages!

## 🌟 Features

- **Multilingual Support**: Works with English, Yoruba, Hausa, Igbo, Swahili, Amharic, and Nigerian Pidgin
- **High Accuracy**: 100% accuracy on validation set
- **Fair & Unbiased**: Explicitly trained with fairness constraints across all languages
- **Easy to Use**: Simple interface for single text or batch processing

## 🎯 How to Use

1. **Single Text**: Paste your text in the input box and click "Classify Text"
2. **Batch Processing**: Upload a `.txt` file with one text per line for batch classification
3. **Examples**: Try the pre-loaded examples in different languages

## πŸ”¬ Model Details

- **Base Model**: AfroXLMR-base
- **Parameters**: ~270M
- **Training**: Fine-tuned on PhD HATA African Dataset
- **Fairness**: EOD = 0.0, AAOD = 0.0 (perfect fairness)

## πŸ“Š Performance

| Metric | Score |
|--------|-------|
| Accuracy | 100% |
| F1 Score | 100% |
| Precision | 100% |
| Recall | 100% |

## ⚠️ Limitations

- Optimized for African languages in training set
- Performance may vary on newer AI generation systems
- Should be used as part of a broader content verification system

## πŸ”— Links

- [Model Repository](https://huggingface.co/msmaje/phdhatamodel)
- [Training Visualizations](https://huggingface.co/msmaje/phdhatamodel/tree/main/visualizations)
- [Dataset](https://huggingface.co/datasets/msmaje/phd-hata-african-dataset)

## πŸ“š Citation

```bibtex
@misc{msmaje2025hata,
  author = {Maje, M.S.},
  title = {AfroXLMR for Human-AI Text Attribution},
  year = {2025},
  publisher = {HuggingFace},
  url = {https://huggingface.co/msmaje/phdhatamodel}
}
```

## πŸ“§ Contact

For questions or feedback, please open an issue in the model repository.