Skip to main content

Fairness Adjusted ASR Score Metric

Project description

🎯 FAAS-Metric

FAAS (Fairness Adjusted ASR Score) is a fairness-aware evaluation metric for Automatic Speech Recognition (ASR) systems. It combines traditional ASR accuracy (like WER) with fairness evaluations across demographic groups to provide a holistic performance measure.


📦 Installation

pip install faas-metric

🚀 Usage

▶️ Python API

from faas_metric import compute_faas

# Example input
wer_list = [12.5, 15.0, 9.0]
speaker_metadata = [
    {"gender": "male", "first_language": "Hindi"},
    {"gender": "female", "first_language": "Tamil"},
    {"gender": "male", "first_language": "Bengali"}
]

# Compute FAAS score
faas = compute_faas(wer_list, speaker_metadata)
print(f"FAAS Score: {faas}")

🖥️ Command Line Interface (CLI)

faas --input path/to/data.csv --output path/to/result.json

📄 Input CSV Format

Your CSV should include:

  • A wer column (Word Error Rate)
  • Any number of fairness-related attributes like gender, first_language, ethnicity, etc.

Example:

wer,gender,first_language
12.5,male,Hindi
15.0,female,Tamil
9.0,male,Bengali

✅ Output

A JSON file (if --output is specified), or the FAAS score printed to the terminal:

{
  "faas_score": 88.0
}

📚 Citation

If you use this work in your research, please cite:

@inproceedings{rai2025asrfairbench,
  title={ASR-FAIRBENCH: Measuring and Benchmarking Equity Across Speech Recognition Systems},
  author={Rai, Anand and Rahangdale, Satyam and Anand, Utkarsh and Mukherjee, Animesh},
  booktitle={Proceedings of Interspeech},
  year={2025}
}

🛠️ Development

To contribute:

git clone https://github.com/yourusername/faas-metric
cd faas-metric
pip install -e .

📬 Contact

For questions or suggestions, please reach out via email.


📄 License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faas_metric-0.1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faas_metric-0.1.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file faas_metric-0.1.2.tar.gz.

File metadata

  • Download URL: faas_metric-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for faas_metric-0.1.2.tar.gz
Algorithm Hash digest
SHA256 602a1acd63f242244bd6131a1fa07e9c36da49098288517c7dd0ff0b61a047c0
MD5 26cea02a155e06402a6d7a0b93c3839f
BLAKE2b-256 410148346fd9c6cc8ac8577b5666a9108aec2a89ff72489d6ccfeae736a391e0

See more details on using hashes here.

File details

Details for the file faas_metric-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: faas_metric-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for faas_metric-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43131d3e36f81d4dc283b9292a4ccf05c9d7ba02d72976564d015afad740999b
MD5 81c2b6535ede0773d14a7f6b488a2042
BLAKE2b-256 b0c67ff813ab9523a6962d7909204227d58801eeb9b973c67bbd3daa7afa507f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page