Skip to content

codelumera/altmetric-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ›‘οΈ Wunaraha: Framework Audit Halusinasi Metrik Alternatif

License: MIT Python 3.9+ Hugging Face Tests Coverage

"Apakah mereka benar-benar membaca abstraknya, atau hanya membaca judulnya?"

Wunaraha adalah framework Python untuk mengaudit kualitas metrik alternatif (Altmetrics). Tools ini menggunakan AI dan NLP untuk membedakan antara Buzz Viral (Kebisingan) vs. Intellectual Adoption (Adopsi Intelektual) dalam percakapan media sosial tentang publikasi ilmiah.

🎯 Masalah

Metrik seperti H-index rentan terhadap self-citation dan citation cartels. Sebagai gantinya, muncul Altmetrics yang mengukur perhatian di media sosial. Namun, Altmetrics juga memiliki kelemahan serius:

  • Bot dan Manipulasi: Download dan mention bisa dibeli atau diotomatisasi.
  • Hype Sesaat: Sebuah makalah bisa viral karena judul kontroversial, bukan karena substansinya.
  • Kebisingan: Tidak ada bedanya antara "Wow, ini keren!" dengan "Ini akan mengubah cara saya bekerja."

πŸ€– Solusi: Audit Berbasis AI

Wunaraha memanfaatkan Large Language Models (LLMs) dan Natural Language Processing (NLP) untuk mengaudit percakapan di balik metrik.

  1. Koleksi Data: Mengambil tweet/post/blog yang merujuk pada sebuah DOI.
  2. Analisis Kedalaman (Depth Analysis): Menggunakan model Transformer (seperti SciBERT atau RoBERTa) untuk mengklasifikasikan teks ke dalam tiga kategori:
    • 🧠 Adopsi Intelektual: Penulis menunjukkan pemahaman mendalam, mengaitkan dengan pekerjaan sendiri, atau mengkritisi metodologi.
    • πŸ“’ Buzz/Hype: Sekadar membagikan tautan, pujian kosong, atau reaksi emosional singkat.
    • πŸ€– Bot/Spam: Akun otomatis yang mem-posting tanpa konteks.
  3. Skor "Altmetric Purity": Metrik baru yang kami usulkan, yaitu persentase mention yang termasuk kategori Adopsi Intelektual.

πŸ“¦ Instalasi & Penggunaan Cepat

Instalasi Development (Recommended)

git clone https://github.com/stipwunaraha/altmetric-validator-ai.git
cd altmetric-validator-ai

# Instal semua dependencies untuk development dan testing
pip install -r requirements-dev.txt

# Atau instal sebagai package editable
pip install -e ".[all]"

Instalasi Minimal (Production)

pip install wunaraha
# atau
pip install -r requirements.txt

Verifikasi Instalasi

# Jalankan unit tests
pytest

# Lihat coverage report
pytest --cov=wunaraha --cov-report=term-missing

Contoh Penggunaan:

from wunaraha import AltmetricAuditor

auditor = AltmetricAuditor(use_gpu=True)

# Audit sebuah DOI
report = auditor.audit(doi="10.1126/science.abc1234")

print(f"Total Mention: {report.total_mentions}")
print(f"Adopsi Intelektual: {report.intellectual_adoption} ({report.purity_score:.2%})")
print(f"Buzz: {report.buzz_mentions}")
print(f"Terindikasi Bot: {report.suspected_bots}")

πŸš€ Fitur Utama

Fitur Deskripsi Status
Depth Analysis Klasifikasi mention ke dalam kategori: Adopsi Intelektual, Buzz/Hype, Bot/Spam βœ… Ready
Bot Detection Deteksi akun otomatis berdasarkan pola posting dan konten βœ… Ready
Altmetric Purity Score Metrik baru: persentase mention berkualitas tinggi βœ… Ready
Multi-Platform Support Twitter/X, Mastodon, Blog (via RSS) 🚧 In Progress
Dashboard Visualisasi Streamlit dashboard untuk explorasi hasil audit 🚧 Planned
Batch Processing Audit multiple DOI sekaligus 🚧 Planned

πŸ—οΈ Arsitektur

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Data Source   │────▢│  Wunaraha Core   │────▢│    Output       β”‚
β”‚                 β”‚     β”‚                  β”‚     β”‚                 β”‚
β”‚ β€’ Twitter API   β”‚     β”‚ β€’ Mention Collectorβ”‚     β”‚ β€’ Audit Report  β”‚
β”‚ β€’ Mastodon API  β”‚     β”‚ β€’ Depth Classifier β”‚     β”‚ β€’ Purity Score  β”‚
β”‚ β€’ RSS Feeds     β”‚     β”‚ β€’ Bot Detector    β”‚     β”‚ β€’ JSON/CSV      β”‚
β”‚                 β”‚     β”‚ β€’ Report Generatorβ”‚     β”‚                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                              β–Ό
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚  AI Models       β”‚
                    β”‚                  β”‚
                    β”‚ β€’ SciBERT        β”‚
                    β”‚ β€’ RoBERTa        β”‚
                    β”‚ β€’ DeBERTa (soon) β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“‚ Struktur Repository

wunaraha/
β”œβ”€β”€ wunaraha/              # Package utama
β”‚   β”œβ”€β”€ __init__.py        # Export public API
β”‚   β”œβ”€β”€ models.py          # Data models (Mention, AuditReport, EngagementType)
β”‚   └── auditor.py         # Core logic (AltmetricAuditor class)
β”œβ”€β”€ tests/                 # Unit tests
β”‚   β”œβ”€β”€ test_auditor.py    # Test suite untuk auditor
β”‚   └── ...
β”œβ”€β”€ requirements.txt       # Dependencies minimal
β”œβ”€β”€ requirements-dev.txt   # Dependencies development lengkap
β”œβ”€β”€ pyproject.toml         # Package configuration
β”œβ”€β”€ setup.py               # Setup script
β”œβ”€β”€ example_usage.py       # Contoh penggunaan
└── docs/                  # Dokumentasi (coming soon)

πŸ§ͺ Testing & Development

Repository ini dilengkapi dengan:

  • Unit Tests: 12 test cases dengan 74% code coverage
  • Development Tools: pytest, black, flake8, mypy, isort
  • CI/CD Ready: Konfigurasi untuk automated testing

Lihat SETUP_DEV.md untuk panduan lengkap setup development environment.

🚧 Roadmap

  • Integrasi Twitter API v2 dan Mastodon API.
  • Model klasifikasi depth-of-engagement berbasis DeBERTa.
  • Dashboard Streamlit untuk visualisasi hasil audit.
  • Dukungan untuk menganalisis berita dari Google News RSS.

πŸ“š Referensi

  • Quantitative Methods in Research Evaluation Citation Indicators, Altmetrics, and Artificial Intelligence (Thelwall, 2024).
  • Have we reached the limits of altmetrics? (Research Information, 2023).

🀝 Kontribusi

Kami mencari data scientist, NLP engineer, dan peneliti yang tertarik dengan research integrity.

Cara Berkontribusi:

  1. Fork repository ini
  2. Buat branch fitur (git checkout -b feature/AmazingFeature)
  3. Commit perubahan (git commit -m 'Add AmazingFeature')
  4. Push ke branch (git push origin feature/AmazingFeature)
  5. Buka Pull Request

Development Setup:

# Clone fork Anda
git clone https://github.com/YOUR_USERNAME/altmetric-validator-ai.git
cd altmetric-validator-ai

# Instal dependencies development
pip install -r requirements-dev.txt

# Jalankan tests sebelum commit
pytest --cov=wunaraha

# Format code
black wunaraha tests
isort wunaraha tests

Lihat CONTRIBUTING.md untuk panduan lengkap.

πŸ“„ Lisensi

MIT License - lihat LICENSE untuk detail.

About

Framework Python yang dirancang untuk melakukan audit kualitas Altmetrics menggunakan teknologi AI dan NLP.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages