Text-overlap comparison

A machine learning approach to recognize bias and discrimination in job advertisements ↔ Effective Strategies for Mitigating Bias in Hiring Algorithms: A Comparative Analysis

5 candidate passages (embedding cosine similarity 0.89–1.00) identified this pair for review. The exhibits below are exact word-shingle matches instead — a multi-word verbatim run is the more convincing evidence of shared text than embedding similarity, with the matched span highlighted.

PAPER A

A machine learning approach to recognize bias and discrimination in job advertisements

(authors unknown) · 2022

doi.org/10.1007/s00146-022-01574-0
↔

PAPER B

Effective Strategies for Mitigating Bias in Hiring Algorithms: A Comparative Analysis

(authors unknown) · 2023

doi.org/10.51219/jaimld/yusuf-jazakallah/16
candidate passages 5similarity range 0.887–1.000median LCS ratio 0.79 exact shingle runs (10+ words) 22

Exact word-shingle matches (10+ consecutive words)

22 runs found

Shingle match 1 of 22

exact run 19 words LCS 0.235-gram Jaccard 0.12

EARLIER¶45-49

The dataset was annotated using 524 unique biased and discriminatory terms divided into the five categories as mentioned before. Given the large number of unique words that needed to be annotated, and the labor-intensive nature of manual annotation, a semi-automatic method for annotation was chosen. A gazetteer-based approach was used to semiautomatically generate an annotated corpus by tagging the biased language terms in the job advertisements. A thorough manual inspection was done to ensure that the tagged annotations were correct. 3.4 Model design 3.4.1 Feature engineering 3.4.1.1 Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. Table 1 presents an explanation for each linguistic feature. 3.4.1.2 Semantic features We utilized various state-ofthe-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pretrained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not dem- Fig. 5 Machine learning models—recall 1034 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 6 Machine learning models—F1 Fig. 7 Confusion matrix Random Forest—FastText

LATER¶37-41

3.2 What are the different types of bias that need to be addressed? There are a number of different types of bias that need to be addressed within the realm of Artificial Intelligence. For instance, the measure of input bias (Ib) is important when it comes to assessing technological advancement7. This measure of technological scale bias (TS,) is given by the equation2,15, and is commonly used in epidemiology to detect bias due to measurement error12. Additionally, the total bias needs to be calculated for individual applications, which includes measurement error bias, response propensity and non-response bias13. Two different association tests have been designed to measure bias, one at sentence level (intra-sentence), and the other at discourse level (inter-sentence)11. Furthermore, electionby-election estimates of partisan bias can be calculated2, and a checklist has been provided to measure the race bias3. The criteria for measuring bias should satisfy the condition that if a set remains unchanged, it should be assigned a value of zero4. Finally, a language of measurement modeling has been introduced to uncover the implicit constructs that such systems rely on5. Thus, it is essential to take these various types of bias into account when developing and assessing AHSs to reduce any potential systemic discrimination. 3.3 What metrics are used to evaluate the performance of a hiring algorithm? In order to evaluate the performance of a hiring algorithm, various metrics are used. For instance, the measure of input bias (Ib) and the measure of technological scale bias (TS,) are two such metrics used to assess technological advancement. Additionally, the measure of bias due to measurement error2 is commonly used in epidemiology. Furthermore, when nonresponse is encountered, total bias needs to be measured9. For instance, two different association tests can be designed to measure bias at the sentence and discourse levels10, with election-by-election estimates of partisan bias used to assess methods for measuring bias and responsiveness12. Moreover, before considering the measurement of race bias13, a two-criterion approach for measuring bias must be adopted14. Finally, to uncover the implicit constructs of a hiring algorithm, measurement modeling can help15. Thus, to assess the performance of a hiring algorithm, a variety of metrics are used to evaluate the fairness and equity of recruitment practices. 4. Model Design 4.1 Feature engineering Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. (Table 1) presents an explanation for each linguistic feature. Semantic features We utilized various state-of-the-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pre-trained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not 5 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 demonstrate sufficient semantic quality due to the smaller size of the dataset. (Table 2) shows the pre-trained models used for each word embedding.

Shingle match 2 of 22

exact run 50 words LCS 0.255-gram Jaccard 0.18

EARLIER¶46-50

was chosen. A gazetteer-based approach was used to semiautomatically generate an annotated corpus by tagging the biased language terms in the job advertisements. A thorough manual inspection was done to ensure that the tagged annotations were correct. 3.4 Model design 3.4.1 Feature engineering 3.4.1.1 Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. Table 1 presents an explanation for each linguistic feature. 3.4.1.2 Semantic features We utilized various state-ofthe-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pretrained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not dem- Fig. 5 Machine learning models—recall 1034 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 6 Machine learning models—F1 Fig. 7 Confusion matrix Random Forest—FastText 1035 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 8 Confusion matrix Random Forest—BERT Fig. 9 Extended machine learning models performance metrics 1036 AI & SOCIETY (2023) 38:1025–1038

LATER¶38-42

3.3 What metrics are used to evaluate the performance of a hiring algorithm? In order to evaluate the performance of a hiring algorithm, various metrics are used. For instance, the measure of input bias (Ib) and the measure of technological scale bias (TS,) are two such metrics used to assess technological advancement. Additionally, the measure of bias due to measurement error2 is commonly used in epidemiology. Furthermore, when nonresponse is encountered, total bias needs to be measured9. For instance, two different association tests can be designed to measure bias at the sentence and discourse levels10, with election-by-election estimates of partisan bias used to assess methods for measuring bias and responsiveness12. Moreover, before considering the measurement of race bias13, a two-criterion approach for measuring bias must be adopted14. Finally, to uncover the implicit constructs of a hiring algorithm, measurement modeling can help15. Thus, to assess the performance of a hiring algorithm, a variety of metrics are used to evaluate the fairness and equity of recruitment practices. 4. Model Design 4.1 Feature engineering Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. (Table 1) presents an explanation for each linguistic feature. Semantic features We utilized various state-of-the-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pre-trained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not 5 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 demonstrate sufficient semantic quality due to the smaller size of the dataset. (Table 2) shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the FlairFootnote1 library. Feature selection

Shingle match 3 of 22

exact run 15 words LCS 0.255-gram Jaccard 0.18

EARLIER¶46-50

was chosen. A gazetteer-based approach was used to semiautomatically generate an annotated corpus by tagging the biased language terms in the job advertisements. A thorough manual inspection was done to ensure that the tagged annotations were correct. 3.4 Model design 3.4.1 Feature engineering 3.4.1.1 Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. Table 1 presents an explanation for each linguistic feature. 3.4.1.2 Semantic features We utilized various state-ofthe-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pretrained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not dem- Fig. 5 Machine learning models—recall 1034 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 6 Machine learning models—F1 Fig. 7 Confusion matrix Random Forest—FastText 1035 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 8 Confusion matrix Random Forest—BERT Fig. 9 Extended machine learning models performance metrics 1036 AI & SOCIETY (2023) 38:1025–1038

LATER¶38-42

3.3 What metrics are used to evaluate the performance of a hiring algorithm? In order to evaluate the performance of a hiring algorithm, various metrics are used. For instance, the measure of input bias (Ib) and the measure of technological scale bias (TS,) are two such metrics used to assess technological advancement. Additionally, the measure of bias due to measurement error2 is commonly used in epidemiology. Furthermore, when nonresponse is encountered, total bias needs to be measured9. For instance, two different association tests can be designed to measure bias at the sentence and discourse levels10, with election-by-election estimates of partisan bias used to assess methods for measuring bias and responsiveness12. Moreover, before considering the measurement of race bias13, a two-criterion approach for measuring bias must be adopted14. Finally, to uncover the implicit constructs of a hiring algorithm, measurement modeling can help15. Thus, to assess the performance of a hiring algorithm, a variety of metrics are used to evaluate the fairness and equity of recruitment practices. 4. Model Design 4.1 Feature engineering Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. (Table 1) presents an explanation for each linguistic feature. Semantic features We utilized various state-of-the-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pre-trained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not 5 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 demonstrate sufficient semantic quality due to the smaller size of the dataset. (Table 2) shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the FlairFootnote1 library. Feature selection

Shingle match 4 of 22

exact run 11 words LCS 0.245-gram Jaccard 0.22

EARLIER¶49-53

Fig. 5 Machine learning models—recall 1034 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 6 Machine learning models—F1 Fig. 7 Confusion matrix Random Forest—FastText 1035 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 8 Confusion matrix Random Forest—BERT Fig. 9 Extended machine learning models performance metrics 1036 AI & SOCIETY (2023) 38:1025–1038 1 3 onstrate sufficient semantic quality due to the smaller size of the dataset. Table 2 shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the Flair1 library. 3.4.1.3 Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 3.4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used:

LATER¶39-43

4. Model Design 4.1 Feature engineering Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. (Table 1) presents an explanation for each linguistic feature. Semantic features We utilized various state-of-the-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pre-trained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not 5 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 demonstrate sufficient semantic quality due to the smaller size of the dataset. (Table 2) shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the FlairFootnote1 library. Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers.

Shingle match 5 of 22

exact run 26 words LCS 0.245-gram Jaccard 0.29

EARLIER¶49-53

Fig. 5 Machine learning models—recall 1034 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 6 Machine learning models—F1 Fig. 7 Confusion matrix Random Forest—FastText 1035 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 8 Confusion matrix Random Forest—BERT Fig. 9 Extended machine learning models performance metrics 1036 AI & SOCIETY (2023) 38:1025–1038 1 3 onstrate sufficient semantic quality due to the smaller size of the dataset. Table 2 shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the Flair1 library. 3.4.1.3 Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 3.4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used:

LATER¶39-44

4. Model Design 4.1 Feature engineering Linguistic features Several linguistic features were used for each token. Each feature represents a characteristic property of the word. (Table 1) presents an explanation for each linguistic feature. Semantic features We utilized various state-of-the-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pre-trained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not 5 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 demonstrate sufficient semantic quality due to the smaller size of the dataset. (Table 2) shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the FlairFootnote1 library. Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used:

Shingle match 6 of 22

exact run 39 words LCS 0.215-gram Jaccard 0.42

EARLIER¶50-54

1035 AI & SOCIETY (2023) 38:1025–1038 1 3 Fig. 8 Confusion matrix Random Forest—BERT Fig. 9 Extended machine learning models performance metrics 1036 AI & SOCIETY (2023) 38:1025–1038 1 3 onstrate sufficient semantic quality due to the smaller size of the dataset. Table 2 shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the Flair1 library. 3.4.1.3 Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 3.4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used: For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch,2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All

LATER¶40-45

Semantic features We utilized various state-of-the-art pre-trained word embeddings as textual features for the machine learning classifiers. The different word embeddings which were used are: Word2Vec (Mikolov et al. 2013), BERT (Devlin et al. 2019), ELMo (Peters et al. 2018), GloVe (Pennington et al. 2014), Flair (Akbik et al. 2018) and FastText (Bojanowski et al. 2017). Pre-trained word embeddings were used because the word embeddings trained on the EMSCAD dataset did not 5 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 demonstrate sufficient semantic quality due to the smaller size of the dataset. (Table 2) shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the FlairFootnote1 library. Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used: For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch, Footnote2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All parameters, including the default parameters utilized for model training, are presented in (Table 3).

Shingle match 7 of 22

exact run 41 words LCS 0.395-gram Jaccard 0.58

EARLIER¶51-56

1 3 onstrate sufficient semantic quality due to the smaller size of the dataset. Table 2 shows the pre-trained models used for each word embedding. For each token, the word embedding vectors were extracted from the corresponding word embedding model using the Flair1 library. 3.4.1.3 Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 3.4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used: For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch,2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All parameters, including the default parameters utilized for model training, are presented in Table 3. 4 Results and analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language as compared to the remaining classifiers. Among the textual features, word embedding representations BERT, FastText and ELMo in combination with the RF classifier had the best performance. This was followed by FastText, ELMo and Flair word embeddings in combination with the DT classifier. We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. Figure 2 presents the macro-averages of the precision, recall and F1-score

LATER¶42-47

For each token, the word embedding vectors were extracted from the corresponding word embedding model using the FlairFootnote1 library. Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used: For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch, Footnote2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All parameters, including the default parameters utilized for model training, are presented in (Table 3). Table 1: Linguistic features. Table 2: Word embeddings characteristics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 6 Table 3: Parameter grid. 5. Results and Analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language

Shingle match 8 of 22

exact run 48 words LCS 0.425-gram Jaccard 0.53

EARLIER¶52-57

3.4.1.3 Feature selection The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 3.4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used: For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch,2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All parameters, including the default parameters utilized for model training, are presented in Table 3. 4 Results and analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language as compared to the remaining classifiers. Among the textual features, word embedding representations BERT, FastText and ELMo in combination with the RF classifier had the best performance. This was followed by FastText, ELMo and Flair word embeddings in combination with the DT classifier. We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. Figure 2 presents the macro-averages of the precision, recall and F1-score Fig. 10 Extended cross-validated Machine learning performance metrics 2 The Baseline was trained using the uniform strategy. SVM was trained using the radial basis function (rbf) kernel with regularization parameter = 10 and gamma = 1. For the LR classifier, we found that the ‘newton-cg’ solver seems to give the optimal performance. For MLP the solver was set to adam. 1 https://​github.​com/​flair​NLP/​flair.

LATER¶43-47

The aforementioned linguistic features were combined with one of the six semantic features (word embedding) to produce a unique feature set. As a result, six unique feature sets were produced as input to the machine learning classifiers. 4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used: For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch, Footnote2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All parameters, including the default parameters utilized for model training, are presented in (Table 3). Table 1: Linguistic features. Table 2: Word embeddings characteristics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 6 Table 3: Parameter grid. 5. Results and Analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language

Shingle match 9 of 22

exact run 179 words LCS 0.465-gram Jaccard 0.52

EARLIER¶53-58

3.4.2 Machine learning classifiers The machine learning classifiers were trained using the six unique feature sets on the training set of annotated job descriptions. The following classifiers were used: For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch,2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All parameters, including the default parameters utilized for model training, are presented in Table 3. 4 Results and analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language as compared to the remaining classifiers. Among the textual features, word embedding representations BERT, FastText and ELMo in combination with the RF classifier had the best performance. This was followed by FastText, ELMo and Flair word embeddings in combination with the DT classifier. We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. Figure 2 presents the macro-averages of the precision, recall and F1-score Fig. 10 Extended cross-validated Machine learning performance metrics 2 The Baseline was trained using the uniform strategy. SVM was trained using the radial basis function (rbf) kernel with regularization parameter = 10 and gamma = 1. For the LR classifier, we found that the ‘newton-cg’ solver seems to give the optimal performance. For MLP the solver was set to adam. 1 https://​github.​com/​flair​NLP/​flair. 1037 AI & SOCIETY (2023) 38:1025–1038 1 3 over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. Figures 3, 4, 5 and 6 present the individual results for accuracy, precision, recall and F1-score for the various models.

LATER¶45-51

For the baseline classifier, Scikit-learn’s Dummy classifier was utilized. By performing parameter optimization using GridSearch, Footnote2 it was possible to search for the optimal parameters for all the machine learning classifiers. For all the classifiers, the maximum iterations were increased to infinity to ensure that the models are able to converge. All parameters, including the default parameters utilized for model training, are presented in (Table 3). Table 1: Linguistic features. Table 2: Word embeddings characteristics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 6 Table 3: Parameter grid. 5. Results and Analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language as compared to the remaining classifiers. Among the textual features, word embedding representations BERT, FastText and ELMo in combination with the RF classifier had the best performance. This was followed by FastText, ELMo and Flair word embeddings in combination with the DT classifier. We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. (Figure 2) presents the macroaverages of the precision, recall and F1-score over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. (Figures 3, 4, 5 and 6) present the individual results for accuracy, precision, recall and F1-score for the various models. 7 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Figure 1: Machine learning models performance metrics. Figure 2: Cross-validated Machine learning performance metrics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 8 Figure 3: Machine learning models-accuracy. Figure 4: Machine learning models-precision.

Shingle match 10 of 22

exact run 22 words LCS 0.085-gram Jaccard 0.09

EARLIER¶56-60

We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. Figure 2 presents the macro-averages of the precision, recall and F1-score Fig. 10 Extended cross-validated Machine learning performance metrics 2 The Baseline was trained using the uniform strategy. SVM was trained using the radial basis function (rbf) kernel with regularization parameter = 10 and gamma = 1. For the LR classifier, we found that the ‘newton-cg’ solver seems to give the optimal performance. For MLP the solver was set to adam. 1 https://​github.​com/​flair​NLP/​flair. 1037 AI & SOCIETY (2023) 38:1025–1038 1 3 over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. Figures 3, 4, 5 and 6 present the individual results for accuracy, precision, recall and F1-score for the various models. Figures 7 and 8 present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in Figs. 7 and 8 indicate that all the five classes of biased and discriminatory language were distinguishable from each other. We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB).

LATER¶47-51

5. Results and Analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language as compared to the remaining classifiers. Among the textual features, word embedding representations BERT, FastText and ELMo in combination with the RF classifier had the best performance. This was followed by FastText, ELMo and Flair word embeddings in combination with the DT classifier. We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. (Figure 2) presents the macroaverages of the precision, recall and F1-score over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. (Figures 3, 4, 5 and 6) present the individual results for accuracy, precision, recall and F1-score for the various models. 7 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Figure 1: Machine learning models performance metrics. Figure 2: Cross-validated Machine learning performance metrics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 8 Figure 3: Machine learning models-accuracy. Figure 4: Machine learning models-precision.

Shingle match 11 of 22

exact run 14 words LCS 0.085-gram Jaccard 0.09

EARLIER¶56-60

We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. Figure 2 presents the macro-averages of the precision, recall and F1-score Fig. 10 Extended cross-validated Machine learning performance metrics 2 The Baseline was trained using the uniform strategy. SVM was trained using the radial basis function (rbf) kernel with regularization parameter = 10 and gamma = 1. For the LR classifier, we found that the ‘newton-cg’ solver seems to give the optimal performance. For MLP the solver was set to adam. 1 https://​github.​com/​flair​NLP/​flair. 1037 AI & SOCIETY (2023) 38:1025–1038 1 3 over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. Figures 3, 4, 5 and 6 present the individual results for accuracy, precision, recall and F1-score for the various models. Figures 7 and 8 present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in Figs. 7 and 8 indicate that all the five classes of biased and discriminatory language were distinguishable from each other. We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB).

LATER¶47-51

5. Results and Analysis In this section, we present the results of various machine learning models on the EMSCAD dataset. The dataset was divided into 80% training and 20% testing set. The evaluation metrics: accuracy, precision, recall and F1-score were computed for each model. Figure 1 presents the evaluation metrics for various classifiers with different feature sets. The results indicate that the RF classifier with BERT word embeddings as textual feature achieved the best performance. This illustrates that contextual word embedding representations such as BERT had a superior performance over the non-contextual word embeddings such as FastText and Word2vec. We also observe that tree-based (Random Forest and Decision Tree) classifiers had a better performance in classifying biased and discriminatory language as compared to the remaining classifiers. Among the textual features, word embedding representations BERT, FastText and ELMo in combination with the RF classifier had the best performance. This was followed by FastText, ELMo and Flair word embeddings in combination with the DT classifier. We further evaluate the various machine learning classifiers with different word embedding representations as features using tenfolds cross-validation. (Figure 2) presents the macroaverages of the precision, recall and F1-score over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. (Figures 3, 4, 5 and 6) present the individual results for accuracy, precision, recall and F1-score for the various models. 7 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Figure 1: Machine learning models performance metrics. Figure 2: Cross-validated Machine learning performance metrics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 8 Figure 3: Machine learning models-accuracy. Figure 4: Machine learning models-precision.

Shingle match 12 of 22

exact run 28 words LCS 0.325-gram Jaccard 0.24

EARLIER¶57-61

Fig. 10 Extended cross-validated Machine learning performance metrics 2 The Baseline was trained using the uniform strategy. SVM was trained using the radial basis function (rbf) kernel with regularization parameter = 10 and gamma = 1. For the LR classifier, we found that the ‘newton-cg’ solver seems to give the optimal performance. For MLP the solver was set to adam. 1 https://​github.​com/​flair​NLP/​flair. 1037 AI & SOCIETY (2023) 38:1025–1038 1 3 over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. Figures 3, 4, 5 and 6 present the individual results for accuracy, precision, recall and F1-score for the various models. Figures 7 and 8 present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in Figs. 7 and 8 indicate that all the five classes of biased and discriminatory language were distinguishable from each other. We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively.

LATER¶50-54

7 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Figure 1: Machine learning models performance metrics. Figure 2: Cross-validated Machine learning performance metrics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 8 Figure 3: Machine learning models-accuracy. Figure 4: Machine learning models-precision. Figure 5: Machine learning models-recall. Figure 6: Machine learning models-F1. Full size image (Figures 7 and 8) present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in (Figs. 7 and 8) indicate that all the five classes of biased and discriminatory language were distinguishable from each other. Figure 7: Confusion matrix Random Forest-FastText. Figure 8: Confusion matrix Random Forest-BERT. 9 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Full size image We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB).

Shingle match 13 of 22

exact run 16 words LCS 0.325-gram Jaccard 0.24

EARLIER¶57-61

Fig. 10 Extended cross-validated Machine learning performance metrics 2 The Baseline was trained using the uniform strategy. SVM was trained using the radial basis function (rbf) kernel with regularization parameter = 10 and gamma = 1. For the LR classifier, we found that the ‘newton-cg’ solver seems to give the optimal performance. For MLP the solver was set to adam. 1 https://​github.​com/​flair​NLP/​flair. 1037 AI & SOCIETY (2023) 38:1025–1038 1 3 over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. Figures 3, 4, 5 and 6 present the individual results for accuracy, precision, recall and F1-score for the various models. Figures 7 and 8 present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in Figs. 7 and 8 indicate that all the five classes of biased and discriminatory language were distinguishable from each other. We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively.

LATER¶50-54

7 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Figure 1: Machine learning models performance metrics. Figure 2: Cross-validated Machine learning performance metrics. J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 8 Figure 3: Machine learning models-accuracy. Figure 4: Machine learning models-precision. Figure 5: Machine learning models-recall. Figure 6: Machine learning models-F1. Full size image (Figures 7 and 8) present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in (Figs. 7 and 8) indicate that all the five classes of biased and discriminatory language were distinguishable from each other. Figure 7: Confusion matrix Random Forest-FastText. Figure 8: Confusion matrix Random Forest-BERT. 9 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Full size image We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB).

Shingle match 14 of 22

exact run 178 words LCS 0.405-gram Jaccard 0.56

EARLIER¶58-63

1037 AI & SOCIETY (2023) 38:1025–1038 1 3 over tenfolds cross-validation. The results of the tenfolds cross-validation indicate that the RF classifier with FastText word embeddings had the best performance. Figures 3, 4, 5 and 6 present the individual results for accuracy, precision, recall and F1-score for the various models. Figures 7 and 8 present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in Figs. 7 and 8 indicate that all the five classes of biased and discriminatory language were distinguishable from each other. We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive randomsampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 5 Conclusion and future research This paper presented a machine learning approach to identify five major categories of bias and discriminatory language in job advertisements. We prepared a list of

LATER¶52-57

Figure 5: Machine learning models-recall. Figure 6: Machine learning models-F1. Full size image (Figures 7 and 8) present the confusion matrices of the two best performing models: (1) RF classifier with FastText word embeddings and (2) RF classifier with BERT word embeddings. The results in (Figs. 7 and 8) indicate that all the five classes of biased and discriminatory language were distinguishable from each other. Figure 7: Confusion matrix Random Forest-FastText. Figure 8: Confusion matrix Random Forest-BERT. 9 Jazakallah Y., J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Full size image We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. Figure 9: Extended machine learning models performance metrics. Figure 10: Extended cross-validated Machine learning performance metrics. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive random-sampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 7. Conclusion By combining machine learning techniques, statistical analysis, and ethical considerations, our research methodology offers a holistic approach to bias mitigation in hiring algorithms. This comprehensive framework enables us to identify, measure, and mitigate both overt and subtle forms of bias, promoting equitable and fair candidate selection practices. The synergy of these methodologies ensures that bias is not only detected but also actively addressed to enhance diversity and inclusion in the recruitment process.

Shingle match 15 of 22

exact run 64 words LCS 0.385-gram Jaccard 0.44

EARLIER¶60-64

We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive randomsampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 5 Conclusion and future research This paper presented a machine learning approach to identify five major categories of bias and discriminatory language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioral works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learningbased approach. The output of such a tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements.

LATER¶54-58

Full size image We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. Figure 9: Extended machine learning models performance metrics. Figure 10: Extended cross-validated Machine learning performance metrics. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive random-sampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 7. Conclusion By combining machine learning techniques, statistical analysis, and ethical considerations, our research methodology offers a holistic approach to bias mitigation in hiring algorithms. This comprehensive framework enables us to identify, measure, and mitigate both overt and subtle forms of bias, promoting equitable and fair candidate selection practices. The synergy of these methodologies ensures that bias is not only detected but also actively addressed to enhance diversity and inclusion in the recruitment process. The integration of machine learning techniques into the research methodology plays a pivotal role in detecting, quantifying, and mitigating bias in hiring algorithms. By utilizing a combination of supervised learning, de-biasing strategies, and fairness-aware representation learning, this approach ensures that the hiring algorithm not only improves its overall performance but also adheres to ethical considerations and promotes fairness and inclusivity in candidate selection.

Shingle match 16 of 22

exact run 73 words LCS 0.385-gram Jaccard 0.44

EARLIER¶60-64

We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive randomsampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 5 Conclusion and future research This paper presented a machine learning approach to identify five major categories of bias and discriminatory language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioral works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learningbased approach. The output of such a tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements.

LATER¶54-58

Full size image We observe a linear improvement in the performance of a sample of our models as training size increases in our primary experiment. We wanted to see if the behavior was by any chance related to these particular models or statistically grounded across all our implemented models. To validate this improvement, we included additional data (3000 additional job descriptions) and ran a new experiment with for the lightweight classifiers (DT, LR and NB). The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. Figure 9: Extended machine learning models performance metrics. Figure 10: Extended cross-validated Machine learning performance metrics. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive random-sampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 7. Conclusion By combining machine learning techniques, statistical analysis, and ethical considerations, our research methodology offers a holistic approach to bias mitigation in hiring algorithms. This comprehensive framework enables us to identify, measure, and mitigate both overt and subtle forms of bias, promoting equitable and fair candidate selection practices. The synergy of these methodologies ensures that bias is not only detected but also actively addressed to enhance diversity and inclusion in the recruitment process. The integration of machine learning techniques into the research methodology plays a pivotal role in detecting, quantifying, and mitigating bias in hiring algorithms. By utilizing a combination of supervised learning, de-biasing strategies, and fairness-aware representation learning, this approach ensures that the hiring algorithm not only improves its overall performance but also adheres to ethical considerations and promotes fairness and inclusivity in candidate selection.

Shingle match 17 of 22

exact run 14 words LCS 0.265-gram Jaccard 0.16

EARLIER¶61-65

The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive randomsampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 5 Conclusion and future research This paper presented a machine learning approach to identify five major categories of bias and discriminatory language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioral works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learningbased approach. The output of such a tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The future research can benefit by incorporating additional categories of biased and discriminatory language. We also plan to train and evaluate the system on other documents such as resumes, academic papers, news articles, social media posts, etc. Our long-term goal is to extend the current system so it's able to identify and classify biased and discriminatory language on any source of text written in the natural language. We also plan to develop metrics to produce a diversity and inclusivity score using the output of the system.

LATER¶60-64

Ethical considerations play a pivotal role in shaping the research methodology for bias mitigation in hiring algorithms. By incorporating interdisciplinary perspectives, ensuring informed consent, promoting transparency, and fostering ongoing improvement, this approach aligns the research with ethical principles. Ultimately, the integration of ethical considerations helps create a framework that not only reduces bias but also upholds fairness, transparency, and social responsibility in the design and deployment of automated hiring systems. The proposed framework for fostering diversity and inclusion in the workplace is necessary to ensure that all employees are treated fairly and equitably. An effective framework should consider both the technical and legal aspects of recruitment and hiring, including laws and regulations that prohibit discrimination2. It should also include measures to prevent discrimination and ensure that every individual is given equal opportunities43. This is the only way to ensure that organizations can create a workforce that is diverse in terms of gender, ethnicity, age, and other factors44. Furthermore, organizations can use the framework to ensure that the recruitment and hiring process is transparent and fair5. This would help them create a positive work environment and foster inclusion and collaboration among employees46. A successful framework should also be capable of providing support and guidance to employees during the recruitment and hiring process7. Ultimately, the proposed framework should be comprehensive enough to provide a sense of closure and completeness to the recruitment and hiring process8. This would make sure that the process is conducted in a fair manner and that all applicants have an equal chance of being selected9. A proper conclusion should also be drawn upon the completion of the recruitment and hiring process5 so that the desired outcomes can be achieved5. This paper has presented a machine learning approach to identify five major categories of bias and discriminatory J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 10 language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioural works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learning-based approach. The output of this tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The findings of this research paper highlight the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. The study reveals that while automated hiring systems (AHSs) are being used to detect and address discrimination against protected groups, claims of ‘bias mitigation’ are rarely scrutinized and evaluated. The study emphasizes the importance of developing fair and equitable recruitment practices to promote greater diversity and inclusion in the workforce. The proposed framework for reducing bias in hiring algorithms aims to ensure that decision-making is done fairly and transparently, and provides support and guidance to employees during the recruitment and hiring process. However, the study also acknowledges that bias mitigation comes at a cost of efficiency and accuracy. The study suggests that ethical considerations should guide the development and implementation of AI-enabled recruitment practices, and that diverse groups should be represented in the development and testing of hiring algorithms. The study also highlights the importance of research methodology, including machine learning and statistical analysis, in providing greater accuracy and precision in results. Ultimately, this research contributes to the ongoing advancement of knowledge in the field of bias in hiring algorithms and provides valuable insights into effective strategies for mitigating bias and promoting equity in the workforce. Future research should continue to explore these issues and further develop the proposed framework for reducing bias in hiring algorithms. In conclusion, the recruitment and hiring process requires a proper conclusion to achieve the desired outcomes. This research paper highlights the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. While automated hiring systems are being used to detect and address discrimination against protected groups, claims of bias mitigation are rarely evaluated. Fair and equitable recruitment practices are essential to promote greater diversity and inclusion in the workforce.

Shingle match 18 of 22

exact run 19 words LCS 0.255-gram Jaccard 0.16

EARLIER¶61-66

The results obtained from the new experiment are shown in Fig. 9 for the regular models (80% training set and 20% test set), and Fig. 10 for the tenfold cross-validated models. We see that the DT classifier which uses BERT word embeddings produced the best performance: 0.98977, 0.99587 and 0.99277 for the precision, recall, and F1-score respectively. In fact, when compared to the result initially obtained by the best performing model in our first experiment, i.e., BERT—RF as shown in Fig. 1, we can see an improvement since the previous performance scores obtained were 0.98557, 0.98862 and 0.98544 equally for the precision, recall, and F1-score respectively. This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive randomsampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 5 Conclusion and future research This paper presented a machine learning approach to identify five major categories of bias and discriminatory language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioral works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learningbased approach. The output of such a tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The future research can benefit by incorporating additional categories of biased and discriminatory language. We also plan to train and evaluate the system on other documents such as resumes, academic papers, news articles, social media posts, etc. Our long-term goal is to extend the current system so it's able to identify and classify biased and discriminatory language on any source of text written in the natural language. We also plan to develop metrics to produce a diversity and inclusivity score using the output of the system. Acknowledgements Kolawole J. Adebayo has received funding from the European Union’s Horizon 2020 research and innovation programme under the CareerFit-Plus Marie Sklodowska—Curie Grant agreement no. 847402.

LATER¶61-65

The proposed framework for fostering diversity and inclusion in the workplace is necessary to ensure that all employees are treated fairly and equitably. An effective framework should consider both the technical and legal aspects of recruitment and hiring, including laws and regulations that prohibit discrimination2. It should also include measures to prevent discrimination and ensure that every individual is given equal opportunities43. This is the only way to ensure that organizations can create a workforce that is diverse in terms of gender, ethnicity, age, and other factors44. Furthermore, organizations can use the framework to ensure that the recruitment and hiring process is transparent and fair5. This would help them create a positive work environment and foster inclusion and collaboration among employees46. A successful framework should also be capable of providing support and guidance to employees during the recruitment and hiring process7. Ultimately, the proposed framework should be comprehensive enough to provide a sense of closure and completeness to the recruitment and hiring process8. This would make sure that the process is conducted in a fair manner and that all applicants have an equal chance of being selected9. A proper conclusion should also be drawn upon the completion of the recruitment and hiring process5 so that the desired outcomes can be achieved5. This paper has presented a machine learning approach to identify five major categories of bias and discriminatory J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 10 language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioural works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learning-based approach. The output of this tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The findings of this research paper highlight the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. The study reveals that while automated hiring systems (AHSs) are being used to detect and address discrimination against protected groups, claims of ‘bias mitigation’ are rarely scrutinized and evaluated. The study emphasizes the importance of developing fair and equitable recruitment practices to promote greater diversity and inclusion in the workforce. The proposed framework for reducing bias in hiring algorithms aims to ensure that decision-making is done fairly and transparently, and provides support and guidance to employees during the recruitment and hiring process. However, the study also acknowledges that bias mitigation comes at a cost of efficiency and accuracy. The study suggests that ethical considerations should guide the development and implementation of AI-enabled recruitment practices, and that diverse groups should be represented in the development and testing of hiring algorithms. The study also highlights the importance of research methodology, including machine learning and statistical analysis, in providing greater accuracy and precision in results. Ultimately, this research contributes to the ongoing advancement of knowledge in the field of bias in hiring algorithms and provides valuable insights into effective strategies for mitigating bias and promoting equity in the workforce. Future research should continue to explore these issues and further develop the proposed framework for reducing bias in hiring algorithms. In conclusion, the recruitment and hiring process requires a proper conclusion to achieve the desired outcomes. This research paper highlights the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. While automated hiring systems are being used to detect and address discrimination against protected groups, claims of bias mitigation are rarely evaluated. Fair and equitable recruitment practices are essential to promote greater diversity and inclusion in the workforce. 8. References 1. Monedero JS, Dencik L, Edwards L. What does it mean to ‘solve’ the problem of discrimination in hiring?: social, technical and legal perspectives from the UK on automated hiring systems. FAT 2020;458-468.

Shingle match 19 of 22

exact run 143 words LCS 0.315-gram Jaccard 0.18

EARLIER¶62-66

This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive randomsampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 5 Conclusion and future research This paper presented a machine learning approach to identify five major categories of bias and discriminatory language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioral works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learningbased approach. The output of such a tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The future research can benefit by incorporating additional categories of biased and discriminatory language. We also plan to train and evaluate the system on other documents such as resumes, academic papers, news articles, social media posts, etc. Our long-term goal is to extend the current system so it's able to identify and classify biased and discriminatory language on any source of text written in the natural language. We also plan to develop metrics to produce a diversity and inclusivity score using the output of the system. Acknowledgements Kolawole J. Adebayo has received funding from the European Union’s Horizon 2020 research and innovation programme under the CareerFit-Plus Marie Sklodowska—Curie Grant agreement no. 847402.

LATER¶61-65

The proposed framework for fostering diversity and inclusion in the workplace is necessary to ensure that all employees are treated fairly and equitably. An effective framework should consider both the technical and legal aspects of recruitment and hiring, including laws and regulations that prohibit discrimination2. It should also include measures to prevent discrimination and ensure that every individual is given equal opportunities43. This is the only way to ensure that organizations can create a workforce that is diverse in terms of gender, ethnicity, age, and other factors44. Furthermore, organizations can use the framework to ensure that the recruitment and hiring process is transparent and fair5. This would help them create a positive work environment and foster inclusion and collaboration among employees46. A successful framework should also be capable of providing support and guidance to employees during the recruitment and hiring process7. Ultimately, the proposed framework should be comprehensive enough to provide a sense of closure and completeness to the recruitment and hiring process8. This would make sure that the process is conducted in a fair manner and that all applicants have an equal chance of being selected9. A proper conclusion should also be drawn upon the completion of the recruitment and hiring process5 so that the desired outcomes can be achieved5. This paper has presented a machine learning approach to identify five major categories of bias and discriminatory J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 10 language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioural works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learning-based approach. The output of this tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The findings of this research paper highlight the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. The study reveals that while automated hiring systems (AHSs) are being used to detect and address discrimination against protected groups, claims of ‘bias mitigation’ are rarely scrutinized and evaluated. The study emphasizes the importance of developing fair and equitable recruitment practices to promote greater diversity and inclusion in the workforce. The proposed framework for reducing bias in hiring algorithms aims to ensure that decision-making is done fairly and transparently, and provides support and guidance to employees during the recruitment and hiring process. However, the study also acknowledges that bias mitigation comes at a cost of efficiency and accuracy. The study suggests that ethical considerations should guide the development and implementation of AI-enabled recruitment practices, and that diverse groups should be represented in the development and testing of hiring algorithms. The study also highlights the importance of research methodology, including machine learning and statistical analysis, in providing greater accuracy and precision in results. Ultimately, this research contributes to the ongoing advancement of knowledge in the field of bias in hiring algorithms and provides valuable insights into effective strategies for mitigating bias and promoting equity in the workforce. Future research should continue to explore these issues and further develop the proposed framework for reducing bias in hiring algorithms. In conclusion, the recruitment and hiring process requires a proper conclusion to achieve the desired outcomes. This research paper highlights the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. While automated hiring systems are being used to detect and address discrimination against protected groups, claims of bias mitigation are rarely evaluated. Fair and equitable recruitment practices are essential to promote greater diversity and inclusion in the workforce. 8. References 1. Monedero JS, Dencik L, Edwards L. What does it mean to ‘solve’ the problem of discrimination in hiring?: social, technical and legal perspectives from the UK on automated hiring systems. FAT 2020;458-468.

Shingle match 20 of 22

exact run 12 words LCS 0.035-gram Jaccard 0.02

EARLIER¶9-13

RQ2—Which state-of-the-art technologies can be employed to achieve optimal results in automatically identifying and classifying biased and discriminatory language in job descriptions? To answer RQ1, we examine the literature for existing works on behavioral science and in particular, bias and discrimination in the recruiting industry (Sect. 2.1). We also developed a list of 524 unique biased and discriminatory terms (see Sect. 3.3) divided into the five categories: masculine-coded, feminine-coded, exclusive, LGBTQ-coded, demographic and racial language. To answer RQ2, the list of 524 unique biased and discriminatory terms was used to annotate the corpus of job descriptions from the publicly available Employment Scam Aegean Dataset, EMSCAD (Vidros et al. 2017) dataset into five categories of biased and discriminatory language. A gazetteer-based approach was used to semi-automatically generate an annotated corpus by tagging the biased language terms in the job advertisements. We utilized the combination of linguistic features and most recent state-of-the-art word embedding representations as input features for training machine learning classifiers on the annotated corpus. The hiring process can be broken down into three phases namely—attraction, selection and retention phases. In the attraction phase, an employer aims to invite applicants by describing the ideal candidate and job role in a job advertisement. The selection phase involves assessing the candidates that applied for a job e.g., reviewing submitted CVs, and matching and shortlisting candidates for interview. While attention is usually focused on the selection phase and machine learning system have been developed to automatically review candidates’ profile and select suitable candidates, the attraction phase has been overlooked. The uniqueness of our approach stems from the fact that our machine learning-based system will directly address the attraction phase by identifying and classifying biased and discriminatory language in job descriptions. The output of our system would empower the recruiters and Human Resources (HR) managers to flag the biased and discriminatory terms and replace them with more inclusive language. Currently available systems exclusively focus on the selection phase of the hiring process and therefore lack the capabilities to eliminate bias at the attraction phase of hiring (Kodiyan 2019; Bendick and Nunes 2012). This obvious gap motivates our work in this direction. To the best of our knowledge, this is the first paper to propose the use of machine learning (ML) and natural language processing (NLP) to tackle bias and discrimination at the attraction phase of hiring. The rest of the paper is organized as follows. Section 2 presents the literature review on bias and discrimination in recruitment, measures taken to prevent bias and discrimination and the use of natural language processing (NLP) in the selection phase of hiring. Section 3 presents the methodology. The results and analysis are discussed in Sect. 4. Section 5 presents the conclusion and future work.

LATER¶61-65

The proposed framework for fostering diversity and inclusion in the workplace is necessary to ensure that all employees are treated fairly and equitably. An effective framework should consider both the technical and legal aspects of recruitment and hiring, including laws and regulations that prohibit discrimination2. It should also include measures to prevent discrimination and ensure that every individual is given equal opportunities43. This is the only way to ensure that organizations can create a workforce that is diverse in terms of gender, ethnicity, age, and other factors44. Furthermore, organizations can use the framework to ensure that the recruitment and hiring process is transparent and fair5. This would help them create a positive work environment and foster inclusion and collaboration among employees46. A successful framework should also be capable of providing support and guidance to employees during the recruitment and hiring process7. Ultimately, the proposed framework should be comprehensive enough to provide a sense of closure and completeness to the recruitment and hiring process8. This would make sure that the process is conducted in a fair manner and that all applicants have an equal chance of being selected9. A proper conclusion should also be drawn upon the completion of the recruitment and hiring process5 so that the desired outcomes can be achieved5. This paper has presented a machine learning approach to identify five major categories of bias and discriminatory J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 10 language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioural works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learning-based approach. The output of this tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The findings of this research paper highlight the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. The study reveals that while automated hiring systems (AHSs) are being used to detect and address discrimination against protected groups, claims of ‘bias mitigation’ are rarely scrutinized and evaluated. The study emphasizes the importance of developing fair and equitable recruitment practices to promote greater diversity and inclusion in the workforce. The proposed framework for reducing bias in hiring algorithms aims to ensure that decision-making is done fairly and transparently, and provides support and guidance to employees during the recruitment and hiring process. However, the study also acknowledges that bias mitigation comes at a cost of efficiency and accuracy. The study suggests that ethical considerations should guide the development and implementation of AI-enabled recruitment practices, and that diverse groups should be represented in the development and testing of hiring algorithms. The study also highlights the importance of research methodology, including machine learning and statistical analysis, in providing greater accuracy and precision in results. Ultimately, this research contributes to the ongoing advancement of knowledge in the field of bias in hiring algorithms and provides valuable insights into effective strategies for mitigating bias and promoting equity in the workforce. Future research should continue to explore these issues and further develop the proposed framework for reducing bias in hiring algorithms. In conclusion, the recruitment and hiring process requires a proper conclusion to achieve the desired outcomes. This research paper highlights the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. While automated hiring systems are being used to detect and address discrimination against protected groups, claims of bias mitigation are rarely evaluated. Fair and equitable recruitment practices are essential to promote greater diversity and inclusion in the workforce. 8. References 1. Monedero JS, Dencik L, Edwards L. What does it mean to ‘solve’ the problem of discrimination in hiring?: social, technical and legal perspectives from the UK on automated hiring systems. FAT 2020;458-468.

Shingle match 21 of 22

exact run 13 words LCS 0.035-gram Jaccard 0.01

EARLIER¶0-3

Vol.:(0123456789) 1 3 AI & SOCIETY (2023) 38:1025–1038 https://doi.org/10.1007/s00146-022-01574-0 STUDENT FORUM A machine learning approach to recognize bias and discrimination in job advertisements Abstract In recent years, the work of organizations in the area of digitization has intensified significantly. This trend is also evident in the field of recruitment where job application tracking systems (ATS) have been developed to allow job advertisements to be published online. However, recent studies have shown that recruiting in most organizations is not inclusive, being subject to human biases and prejudices. Most discrimination activities appear early but subtly in the hiring process, for instance, exclusive phrasing in job advertisement discourages qualified applicants from minority groups from applying. The existing works are limited to analyzing, categorizing and highlighting the occurrence of bias in the recruitment process. In this paper, we go beyond this and develop machine learning models for identifying and classifying biased and discriminatory language in job descriptions. We develop and evaluate a machine learning system for identifying five major categories of biased and discriminatory language in job advertisements, i.e., masculine-coded, feminine-coded, exclusive, LGBTQ-coded, demographic and racial language. We utilized the combination of linguistic features with recent state-of-the-art word embeddings representations as input features for various machine learning classifiers. Our results show that the machine learning classifiers were able to identify all the five categories of biased and discriminatory language with a decent accuracy. The Random Forest classifier with FastText word embeddings achieved the best performance with tenfolds cross-validation. Our system directly addresses the bias in the attraction phase of hiring by identifying and classifying biased and discriminatory language and thus encouraging recruiters to write more inclusive job advertisements. Keywords Machine learning · Human resource management · Bias · Discrimination · Employment · Application tracking system 1 Introduction A conventional approach to think about bias and discrimination is that it confers preference on someone or treating someone differently than another person. In today’s society, discrimination and prejudice cuts across a wide area of human endeavors and affects countless number of people, especially those designated as underrepresented or minority. Bias and discrimination serve as a thumbprint of socially constructed stereotypes as they are often a product of extensive cultural and societal learning (Gravett 2017). In most cases, people learn cultural attitudes about gender and race right from an early age. Bias in recruiting becomes noticeable when some applicants get unfair advantage due to their protected attributes, e.g., physical appearance, gender, and ethnicity (Böhm et al. 2020; Erkmen et al. 2021). Studies have shown that women and People of Colour (PoC) have lower chances of getting

LATER¶61-65

The proposed framework for fostering diversity and inclusion in the workplace is necessary to ensure that all employees are treated fairly and equitably. An effective framework should consider both the technical and legal aspects of recruitment and hiring, including laws and regulations that prohibit discrimination2. It should also include measures to prevent discrimination and ensure that every individual is given equal opportunities43. This is the only way to ensure that organizations can create a workforce that is diverse in terms of gender, ethnicity, age, and other factors44. Furthermore, organizations can use the framework to ensure that the recruitment and hiring process is transparent and fair5. This would help them create a positive work environment and foster inclusion and collaboration among employees46. A successful framework should also be capable of providing support and guidance to employees during the recruitment and hiring process7. Ultimately, the proposed framework should be comprehensive enough to provide a sense of closure and completeness to the recruitment and hiring process8. This would make sure that the process is conducted in a fair manner and that all applicants have an equal chance of being selected9. A proper conclusion should also be drawn upon the completion of the recruitment and hiring process5 so that the desired outcomes can be achieved5. This paper has presented a machine learning approach to identify five major categories of bias and discriminatory J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 10 language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioural works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learning-based approach. The output of this tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The findings of this research paper highlight the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. The study reveals that while automated hiring systems (AHSs) are being used to detect and address discrimination against protected groups, claims of ‘bias mitigation’ are rarely scrutinized and evaluated. The study emphasizes the importance of developing fair and equitable recruitment practices to promote greater diversity and inclusion in the workforce. The proposed framework for reducing bias in hiring algorithms aims to ensure that decision-making is done fairly and transparently, and provides support and guidance to employees during the recruitment and hiring process. However, the study also acknowledges that bias mitigation comes at a cost of efficiency and accuracy. The study suggests that ethical considerations should guide the development and implementation of AI-enabled recruitment practices, and that diverse groups should be represented in the development and testing of hiring algorithms. The study also highlights the importance of research methodology, including machine learning and statistical analysis, in providing greater accuracy and precision in results. Ultimately, this research contributes to the ongoing advancement of knowledge in the field of bias in hiring algorithms and provides valuable insights into effective strategies for mitigating bias and promoting equity in the workforce. Future research should continue to explore these issues and further develop the proposed framework for reducing bias in hiring algorithms. In conclusion, the recruitment and hiring process requires a proper conclusion to achieve the desired outcomes. This research paper highlights the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. While automated hiring systems are being used to detect and address discrimination against protected groups, claims of bias mitigation are rarely evaluated. Fair and equitable recruitment practices are essential to promote greater diversity and inclusion in the workforce. 8. References 1. Monedero JS, Dencik L, Edwards L. What does it mean to ‘solve’ the problem of discrimination in hiring?: social, technical and legal perspectives from the UK on automated hiring systems. FAT 2020;458-468.

Shingle match 22 of 22

exact run 20 words LCS 0.295-gram Jaccard 0.17

EARLIER¶62-67

This analysis reinforces our belief that even the strong performance we have observed across the board can be further improved. However, it is not currently clear if, by any stroke of chance, the data samples utilized for evaluation might have been simplistic in the sense that they represent trivial cases. To the best of our knowledge, we have avoided cherry-picking by carrying out extensive randomsampling to select the evaluation set. However, given the small ratio of the entire evaluation set when compared to the size of our full data, we may not confidently rule out that this could have had an impact. In any case, we are leaving this for future study where we hope to perform a more comprehensive experiment on our entire dataset including carrying out an extensive ablation study with error analysis on the result. 5 Conclusion and future research This paper presented a machine learning approach to identify five major categories of bias and discriminatory language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioral works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learningbased approach. The output of such a tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The future research can benefit by incorporating additional categories of biased and discriminatory language. We also plan to train and evaluate the system on other documents such as resumes, academic papers, news articles, social media posts, etc. Our long-term goal is to extend the current system so it's able to identify and classify biased and discriminatory language on any source of text written in the natural language. We also plan to develop metrics to produce a diversity and inclusivity score using the output of the system. Acknowledgements Kolawole J. Adebayo has received funding from the European Union’s Horizon 2020 research and innovation programme under the CareerFit-Plus Marie Sklodowska—Curie Grant agreement no. 847402. Author contributions RF contributed to the design and implementation of the methodology, development of the machine learning models, analysis of results and writing of the original draft. KJA and RN contributed to supervision and editing the original draft.

LATER¶61-66

The proposed framework for fostering diversity and inclusion in the workplace is necessary to ensure that all employees are treated fairly and equitably. An effective framework should consider both the technical and legal aspects of recruitment and hiring, including laws and regulations that prohibit discrimination2. It should also include measures to prevent discrimination and ensure that every individual is given equal opportunities43. This is the only way to ensure that organizations can create a workforce that is diverse in terms of gender, ethnicity, age, and other factors44. Furthermore, organizations can use the framework to ensure that the recruitment and hiring process is transparent and fair5. This would help them create a positive work environment and foster inclusion and collaboration among employees46. A successful framework should also be capable of providing support and guidance to employees during the recruitment and hiring process7. Ultimately, the proposed framework should be comprehensive enough to provide a sense of closure and completeness to the recruitment and hiring process8. This would make sure that the process is conducted in a fair manner and that all applicants have an equal chance of being selected9. A proper conclusion should also be drawn upon the completion of the recruitment and hiring process5 so that the desired outcomes can be achieved5. This paper has presented a machine learning approach to identify five major categories of bias and discriminatory J Artif Intell Mach Learn & Data Sci | Vol: 1 & Iss: 4 Jazakallah Y., 10 language in job advertisements. We prepared a list of unique biased and discriminatory terms after examining the literature on behavioural works related to bias in recruitment. This list was used to semi-automatically generate an annotated corpus by the tagging the biased language terms (using a gazetteer-based approach) in the job advertisements of the publicly available Employment Scam Aegean Dataset, EMSCAD. This annotated corpus was used to train state-of-the-art machine learning classifiers to identify five different categories of biased and discriminatory language. We utilized a combination of linguistic features and most recent state-of-the-art word embedding representations as textual features to capture the natural language semantics of biased language. These features were fed into the machine learning classifiers. The results indicate that the Random Forest classifier with FastText word embeddings achieved the best performance with tenfold cross-validation. Overall, this work presents a major contribution in the attention phase of hiring and empowering recruiters by identifying and classifying discriminatory language in job advertisements using a machine learning-based approach. The output of this tool can be used to flag biased and discriminatory language and encourage recruiters to write more inclusive job advertisements. The findings of this research paper highlight the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. The study reveals that while automated hiring systems (AHSs) are being used to detect and address discrimination against protected groups, claims of ‘bias mitigation’ are rarely scrutinized and evaluated. The study emphasizes the importance of developing fair and equitable recruitment practices to promote greater diversity and inclusion in the workforce. The proposed framework for reducing bias in hiring algorithms aims to ensure that decision-making is done fairly and transparently, and provides support and guidance to employees during the recruitment and hiring process. However, the study also acknowledges that bias mitigation comes at a cost of efficiency and accuracy. The study suggests that ethical considerations should guide the development and implementation of AI-enabled recruitment practices, and that diverse groups should be represented in the development and testing of hiring algorithms. The study also highlights the importance of research methodology, including machine learning and statistical analysis, in providing greater accuracy and precision in results. Ultimately, this research contributes to the ongoing advancement of knowledge in the field of bias in hiring algorithms and provides valuable insights into effective strategies for mitigating bias and promoting equity in the workforce. Future research should continue to explore these issues and further develop the proposed framework for reducing bias in hiring algorithms. In conclusion, the recruitment and hiring process requires a proper conclusion to achieve the desired outcomes. This research paper highlights the critical issue of bias in hiring algorithms and the need for effective strategies to mitigate it. While automated hiring systems are being used to detect and address discrimination against protected groups, claims of bias mitigation are rarely evaluated. Fair and equitable recruitment practices are essential to promote greater diversity and inclusion in the workforce. 8. References 1. Monedero JS, Dencik L, Edwards L. What does it mean to ‘solve’ the problem of discrimination in hiring?: social, technical and legal perspectives from the UK on automated hiring systems. FAT 2020;458-468. 2. Hufthammer KT, Aasheim TH, Ånneland S, Brynjulfsen H, Slavkovik M. Bias mitigation with AIF360: A comparative study. NIK 2020;1:1-12. 3. Raghavan M, Barocas S, Kleinberg J, Levy K. Mitigating bias in algorithmic hiring: evaluating claims and practices. FAT 2020; 469-481.