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 open an issue or 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.1.tar.gz (3.3 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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: faas_metric-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.tar.gz
Algorithm Hash digest
SHA256 a4051a3f5d176de288e4dae53494ccf61cbf7d719d4a0df7051b52ecf70609bd
MD5 c4aa713edad0209769c8874d9ee6871b
BLAKE2b-256 b1b66922725502692605775974712ca7e0157598c69a7470dd064080293595a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: faas_metric-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d17468c4291a2375f1012ec9cd6b750a568c242510c5698214cc5b8f7f052e5e
MD5 f2e755d2dac2718df4f1c318faed0e62
BLAKE2b-256 dbdd857a91de142f767c9d2bec67ef604c834e17cf61d4713e45a4c1fd75f5a4

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