Automated Identification of Sexual Orientation and Gender Identity Discriminatory Texts from Issue Comments

πŸ“… 2023-11-14
πŸ›οΈ arXiv.org
πŸ“ˆ Citations: 2
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
In heterosexual male-dominated Free/Libre and Open Source Software (FLOSS) communities, women and LGBTQ+ developers frequently encounter sexual orientation and gender identity discrimination (SGID) discourse, severely impeding their participation. Manual moderation of vast issue-comment volumes is infeasible, necessitating automated detection. This paper introduces SGID4SEβ€”the first SGID detection framework tailored to software engineering text. It innovatively integrates six-step domain-adapted preprocessing, comparative evaluation of ten algorithms, and six minority-class performance enhancement strategies, with fine-tuned BERT at its core and integrated class-imbalance mitigation techniques. Ten-fold cross-validation demonstrates that the model achieves 85.9% precision, 80.0% recall, and 82.9% F1-score for the SGID class, with an overall accuracy of 95.7% and Matthews Correlation Coefficient (MCC) of 80.4%, significantly outperforming baseline approaches.
πŸ“ Abstract
In an industry dominated by straight men, many developers representing other gender identities and sexual orientations often encounter hateful or discriminatory messages. Such communications pose barriers to participation for women and LGBTQ+ persons. Due to sheer volume, manual inspection of all communications for discriminatory communication is infeasible for a large-scale Free Open-Source Software (FLOSS) community. To address this challenge, this study aims to develop an automated mechanism to identify Sexual orientation and Gender identity Discriminatory (SGID) texts from software developers' communications. On this goal, we trained and evaluated SGID4SE ( Sexual orientation and Gender Identity Discriminatory text identification for (4) Software Engineering texts) as a supervised learning-based SGID detection tool. SGID4SE incorporates six preprocessing steps and ten state-of-the-art algorithms. SGID4SE implements six different strategies to improve the performance of the minority class. We empirically evaluated each strategy and identified an optimum configuration for each algorithm. In our ten-fold cross-validation-based evaluations, a BERT-based model boosts the best performance with 85.9% precision, 80.0% recall, and 82.9% F1-Score for the SGID class. This model achieves 95.7% accuracy and 80.4% Matthews Correlation Coefficient. Our dataset and tool establish a foundation for further research in this direction.
Problem

Research questions and friction points this paper is trying to address.

Automate detection of gender and orientation discrimination in texts
Address barriers for women and LGBTQ+ in FLOSS communities
Develop SGID4SE tool using machine learning for accurate identification
Innovation

Methods, ideas, or system contributions that make the work stand out.

Supervised learning-based SGID detection tool
Incorporates six preprocessing steps and ten algorithms
BERT-based model achieves high precision and recall