<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Methodology based on Rebalancing Techniques to measure and improve Fairness in Artificial Intelligence algorithms</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ana Lavalle</string-name>
          <email>alavalle@dlsi.ua.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Juan Trujillo</string-name>
          <email>jtrujillo@dlsi.ua.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alejandro Maté</string-name>
          <email>amate@dlsi.ua.es</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jorge García</string-name>
          <email>jorge.g@ua.es</email>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Lucentia Research (DLSI), University of Alicante</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Lucentia Research (DLSI), University of Alicante</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Lucentia Research (DLSI), University of Alicante</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Lucentia Research (DLSI), University of Alicante</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Artificial Intelligence (AI) has become one of the key drivers for the next decade. As important decisions are increasingly supported or directly made by AI systems, concerns regarding the rationale and fairness in their outputs are becoming more and more prominent nowadays. Following the recent interest in fairer predictions, several metrics for measuring fairness have been proposed, leading to diferent objectives which may need to be addressed in diferent fashion. In this paper, we propose (i) a methodology for analyzing and improving fairness in AI predictions by selecting sensitive attributes that should be protected; (ii) We analyze how the most common rebalance approaches afect the fairness of AI predictions and how they compare to the alternatives of removing or creating separate classifiers for each group within a protected attribute. Finally, (iii) our methodology generates a set of tables that can be easily computed for choosing the best alternative in each particular case. The main advantage of our methodology is that it allows AI practitioners to measure and improve fairness in AI algorithms in a systematic way. In order to check our proposal, we have properly applied it to the COMPAS dataset, which has been widely demonstrated to be biased by several previous studies.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>
        The use of Artificial Intelligence (AI) systems is rapidly spreading
across many diferent sectors and organizations. More and more
important decisions are being made supported by AI algorithms.
Therefore, it is essential to ensure that these decisions do not
reflect discriminatory behavior towards certain groups.
However, given the lack of an adequate methodology, creating fair AI
systems has proven to be a complex and challenging task [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].
      </p>
      <p>
        As it is becoming more and more used, big companies and
governments are delegating responsibilities to AI systems which
have not been thoroughly evaluated. In turn, some taken
decisions have often been biased and unfair (e.g. the AI system
from Amazon to qualify job applicants [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] or the granting of
credit for the Apple credit card [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]). One of the most notorious
cases where AI tools have acted in a biased and unfair way is
COMPAS (Correctional Ofender Management Profiling for
Alternative Sanctions). This software has been used by judges in
order to decide whether to grant parole to criminals or keep them
in prison. The output is provided by an algorithm that evaluates
the probability that a criminal defendant becoming a recidivist.
Unfortunately, several studies have shown that the recidivism
prediction scores are biased [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]. This algorithm showed
discriminatory behavior towards African-American inmates, which
were almost three times more likely to be classified as high risk
inmates than Caucasian inmates [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        As a result of this trend, AI research communities have recently
increased their attention towards the issue of AI algorithm’s
fairness. The IEEE Standards Association pays attention to the
meaning and impact of algorithmic transparency [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. Moreover, these
issues are also aligned to the ethical guidelines for a trustworthy
AI presented by the European Commission [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].Therefore, it is
essential to ensure that the decisions made by AI solutions do
not reflect discriminatory behavior.
      </p>
      <p>
        Nevertheless, to the best of our knowledge, most of the
approaches are mainly focused on improving the accuracy of
algorithms in the prediction, while the fairness of the output is
relegated to a second-class metric [
        <xref ref-type="bibr" rid="ref11 ref14 ref5">5, 11, 14</xref>
        ]. Thus, there has not been
any proposal or methodology that guides the AI practitioners
in choosing the best features to avoid unfair and discriminatory
outputs from AI algorithms.
      </p>
      <p>In this paper, we propose a methodology that considers
fairness as a first-class citizen. Our methodology measures and
evaluates the impact of the dataset rebalancing techniques on AI
fairness. The novelty of our methodology is that it introduces
new steps with respect to the traditional process of AI
development such as: (i) a bias analysis, (ii) fairness definition and (iii)
fairness evaluation. Moreover, another novelty of our
methodology is that it helps to improve fairness by applying rebalancing
approaches considering not only the target variable/s, but also
sensitive attributes in the dataset that should be protected from
discrimination. In order to both exemplify our approach and test
the impact of each rebalancing alternative, we implement a
classiifer over the COMPAS dataset, calculating the degree of fairness
obtained according to three diferent fairness definitions.
2</p>
    </sec>
    <sec id="sec-2">
      <title>RELATED WORK</title>
      <p>
        Bias can appear in many forms. [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] groups and lists diferent
types of biases that can afect AI solutions according to where
they appear: from Data to Algorithm, when AI algorithms are
trained with biased data, the output of these algorithms might
be also biased. From Algorithm to User, when bias arises as a
result of an algorithm output it afects users’ behavior. Or from
User to Data, when data sources used for training AI algorithms
are generated by users, historical socio-cultural issues can be
introduced into the data even when perfect sampling and feature
selection are carried out.
      </p>
      <p>
        To tackle these situations, researchers have proposed
diferent techniques that can be grouped into the next perspectives.
Data Perspective when class distribution is artificially
rebalanced by sampling the data. This rebalancing can be done by:
Oversampling [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], creating more data in the minority classes.
Undersampling [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], eliminating data from the majority classes
or other like SMOTE [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], where minority classes are
oversampled by interpolating between neighboring data points. However,
these techniques must be used with tremendous care as they can
lead to the loss of certain characteristics of the data. An
alternative perspective is the Algorithmic Perspective, these solutions
adjust the hyperparameters of the learning algorithms. Or, the
Ensemble Approach that mixes aspects from both the data and
algorithmic perspectives.
      </p>
      <p>
        Most of these approaches mainly focus on improving the
accuracy of algorithms in the prediction, while the fairness of the
output is relegated to a second-class metric. As [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] states,
accuracy is no longer the only concern when developing models.
Fairness must be taken into account as well in order to avoid
more cases as those presented in the introduction.
      </p>
      <p>
        Moreover, as [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] argues, modifying data sources or restricting
models in order to improve the fairness can harm the predictive
accuracy. The fairness of predictions should be evaluated in the
context of data. Unfairness induced by inadequate samples sizes
or unmeasured predictive variables should be addressed through
data collection, rather than by constraining the model [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>Thus, diferently from the above-presented proposals, we
propose a novel methodology that considers fairness as a first-class
citizen from the very beginning of the AI process. We drive the
whole process considering protected attributes during the
rebalance step and leading the AI practitioner to a conscious decision
on the trade-of (if necessary) between accuracy and fairness.
3</p>
    </sec>
    <sec id="sec-3">
      <title>IMPROVING FAIRNESS IN ARTIFICIAL</title>
    </sec>
    <sec id="sec-4">
      <title>INTELLIGENCE</title>
      <p>Tackling AI challenges requires awareness of the context where
algorithms will be not only trained, but also, where they generate
outputs. Biases and errors that go unnoticed lead into wrong or
unfair decisions. Moreover, since training AI algorithms is a
timeconsuming task (several days or weeks), developing them without
a clear direction may result in considerable waste of resources.</p>
      <p>For this reason, we propose the methodology shown in Fig. 1.
By following this methodology, AI practitioners will be able to
analyze and improve fairness in AI predictions.</p>
      <p>
        The first step in our methodology (Fig. 1) starts with the
definition of the Target Variable by AI practitioners. Then, during the
Bias Analysis step, the algorithm proposed in [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] is executed
in order to detect existing biases in the dataset. This algorithm
output will provide an overview of how biased the attributes of
the dataset are. Moreover, this information will help
practitioners to select the Protected Attribute/s such as race, gender, or
any other that requires special attention to ensure fair treatment.
Whether protected attributes have been detected in the dataset,
a Definition of Fairness will be launched in order to allow
practitioners to measure whether the AI system is really being
fair. Then, a Data Rebalancing (whether necesary) will be
accomplished and AI practitioners will proceed to the Algorithm
Training. Finally, we propose a set of tables and visualizations
in order to interpret the Algorithm Results.
      </p>
      <p>
        In the following, we will further describe all the steps of our
methodology by applying it in a real case study.
3.1
The dataset chosen in order to apply our methodology in a real
case study has been the ProPublica COMPAS dataset available in
[
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. This dataset includes information about criminal defendants
who were evaluated with COMPAS scores in the Broward County
Sherif’s Ofice in Florida, during 2013 and 2014.
      </p>
      <p>For each accused (case), this dataset contain information
related to their demographic information (race, gender, etc),
criminal history and administrative information. Finally, the dataset
also contains information about whether the accused was really
a recidivists or not in the next 2 years. This dataset is highly
imbalanced, the representation of the diferent races is heavily
skewed. Then, we will apply our methodology step by step.
3.2</p>
    </sec>
    <sec id="sec-5">
      <title>Target Variable Definition</title>
      <p>The first step of our proposed methodology is to define the target
variable. In this case, the target variable is “v_score_text” which
uses 3 attributes (Low, Middle, High) to classify the risk of
recidivism. For the sake of simplicity, we will binarize the target
variable by mapping the Low class to Non-Recividist, and the
Middle and High classes to the Recividist class thereby facilitating
following the analysis presented. Therefore the Target variable
is defined as Risk of recidivism (0 Non-recividist, 1 Recividist).
3.3</p>
    </sec>
    <sec id="sec-6">
      <title>Bias Analysis</title>
      <p>
        The second step is to perform a Bias Analysis. As
previouslysummarized in Section 2, and according to [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], the diferent data
bias that can be used in our case study context are (i) Data to
Algorithm, (ii) Algorithm to Use and (iii) User to Data. As in our
particular case, we are analyzing how biased data sets afect AI
algorithms, we will apply the Data to Algorithm bias.
      </p>
      <p>
        In order to analyze how data bias afect the behavior of AI
algorithms, firstly we apply our previously published algorithm [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]
that automatically detects and visualizes bias in data analytics.
      </p>
      <p>This algorithm examines the dataset returning us as output a
number between 0 and 10 that establishes the bias ratio of the
attributes (being 0 equally distributed and 10 very biased). This
number is visually represented in order to present an overview
of the data bias for a better understanding and exploration.</p>
      <p>In this case of study, the bias ratios were (Race: 9.95, Sex:
7.60 and Age category: 6.28), the most biased attribute was race
and it was selected as a protected attribute. The main reason
is that the race of the accused should never be a characteristic
that influences the classification of risk of recidivism (the target
variable). Therefore the Protected attribute is defined as Race.</p>
      <p>Furthermore, a visualization (Fig. 2) that groups the predicted
target variable (risk of recidivism) by the attributes selected as
protected (race) is created. As cleary observed, there is a high
risk in accused of African-American race than in the rest of races.</p>
      <p>
        Once the dataset has been analyzed and the bias has been
located, AI practitioners will have more detailed knowledge in
order to detect the types of bias that might arise. Among the types
of bias which can appear, those relevant for our methodology are
categorized in Data to Algorithm bias as described by [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]:
• Measurement Bias: Arises when we choose and
measure features of interest. If a group is monitored more
frequently, more errors will be observed in that group.
• Omitted Variable Bias: When important variables are
left out of the model.
• Representation Bias: Arises in the data collection
process when data does not represent the real population.
Target
      </p>
      <p>Variable
AI Practitioners Definition</p>
      <p>Protected
attributes?</p>
      <p>No</p>
      <p>Data
Rebalancing</p>
      <p>Yes</p>
      <p>Fairness
Definition</p>
      <p>Algorithm</p>
      <p>Training
Algorithm</p>
      <p>Results
Interpretation
• Aggregation Bias: When false conclusions are drawn
about individuals from observing the entire population.
Data from several groups (i.e. cities, races, age groups, etc.)
can be correlated diferently across classes. However, if an
aggregation is performed, the general correlation of the
aggregated data could be completely diferent from the
earlier correlations.
• Sampling Bias: Trends estimated for one population may
not generalize to data collected from a new population.
• Longitudinal Data Fallacy: When temporal data is
modeled using a cross-sectional analysis, which combines
multiple groups at a single point in time.
• Linking Bias: When network attributes obtained from
user connections, activities, or interactions difer and
misrepresent the true behavior of the users.</p>
      <p>
        In this specific case study, the bias analysis leads to consider as
potential biases both Measurement Bias, some individuals tend
to live in zones with high criminal activity, hence a higher level
of surveillance by the police is needed and it could derive into a
feedback loop. And Representation Bias since data presents a
significantly diferent distribution compared to the demographic
distribution of Florida state [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] (where the data was collected).
3.4
      </p>
    </sec>
    <sec id="sec-7">
      <title>Fairness Definition</title>
      <p>The presence of bias can eventually derive into unfair results,
especially when the bias is present in protected attributes. Thus,
analyzing which biases might be present in the current problem is
essential to determine which fairness metrics are more important.</p>
      <p>In our case study, the race attribute was considerably biased.
As this is a protected attribute, it is important to define one or
more metrics that quantify the fairness of the results.</p>
      <p>
        As [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] argues, in general terms, fairness can be defined as the
absence of any prejudice or favoritism towards an individual or a
group. However, although fairness is a quality highly desired by
society, it can be surprisingly dificult to achieve in practice [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].
      </p>
      <p>
        Therefore, with the aim of defining, limiting and being able
to measure whether fairness is being achieved, our proposed
method makes AI practitioners reflect on the type of justice that
they want to achieve. Among the types of justice we can find:
• Individual Fairness: Give similar predictions to similar
individuals [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], i.e. points that are closer to each other in
the feature space should have similar predictions.
• Group Fairness: Treat diferent groups equally [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
• Subgroup Fairness: Try to obtain the best properties of
the group and individual notions of fairness. It picks a
statistical fairness constraint (like equalizing false
positive rates across protected groups) and asks whether this
constraint holds over a large collection of subgroups [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
      </p>
      <p>
        In this case of study, “Group Fairness” has been selected, since
the race attribute has been selected as protected and fairness is
sought between the diferent groups of races. Specifically, the
following definitions of “Group Fairness” have been followed:
• Equalized Odds: Groups within protected attributes must
have the same ratio of true and false positives [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. As
equality of odds can be really dificult to achieve, it can be
decomposed into two more relaxed versions:
• Equal Opportunity: Groups within protected attributes
must have equal true positive rates [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ].
• Predictive Equality: False positive rates must be equal
across all groups of the protected attribute [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>Depending on the problem, one definition could be more
important than the other. For example, in building a model to predict
if a subject is eligible for a grant, it is relevant for the rate of true
positives of both sexes to be equal, i.e. equal opportunity should
be achieved. On the other side, a risk assessing model should
focus on having the same false positive rates across protected
groups, as missclassifying an individual as high risk can be really
harmful, hence the importance to prioritize predictive equality.
3.5</p>
    </sec>
    <sec id="sec-8">
      <title>Data Rebalancing</title>
      <p>By choosing and studying which fairness metrics are more
suitable for the current problem, AI practitioners are now able to
focus on applying several techniques and evaluate its impact
based on these fairness definitions.</p>
      <p>In this case, diferent data rebalancing techniques will be used
to modify the dataset distribution in terms of race and recidivism
rate, in order to assess its impact in terms of fairness.</p>
      <p>Usually, data rebalancing techniques are used in problems of
imbalanced classification, where the target variable to be
predicted has a majority and a minority class.</p>
      <p>In this case study, the dataset could be rebalanced to be
composed of 50% non-recidivists and 50% recidivists, which is the
target variable. However, this approach does not take into
account the diferent groups where fairness has to be assessed and
preserved. Therefore, as an alternative view on the problem, we
propose to treat the bias and unfairness in the protected attributes
as a rebalancing problem. In this sense, we extend the rebalancing
methods to consider the protected attribute in addition to their
associated target variable, thus allowing to control the proportion
of each group in the sample.</p>
      <p>In other words, by extending the rebalancing techniques, the
dataset of this case study can be modified as follows: 25%
AfricanAmerican non-recidivists, 25% African-American recidivists, 25%
Caucasian non-recidivists and 25% Caucasian recidivists.</p>
      <p>
        As there are several techniques for rebalancing, in this case
study we will focus on three diferent data rebalancing techniques:
Undersampling [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], Oversampling [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], and SMOTE [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
3.6
      </p>
    </sec>
    <sec id="sec-9">
      <title>Algorithm Training</title>
      <p>
        In this case, the XGBoost [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] classifier has been used with the
default hyperparameters. In order to complement the experiments
related to rebalancing using the previous techniques, three extra
experiments have been carried out to provide further insights:
• Baseline: It is important to evaluate the model obtained
without applying any rebalancing so that it acts as a
baseline model in order to compare the results.
• Split by race: Two separate classifiers will be trained, one
for each of the race studied.
• Remove race attribute: Same experiment as baseline,
but omitting the race attribute.
      </p>
      <p>Regarding the accomplished experiments, the whole training
process can be described as follows: (1) Split the dataset into
a training and test sets, (2) Rebalance the dataset by using the
forementioned techniques (depending on the experiment, either
the training set or both sets are rebalanced), (3) Train the classifier
to predict the risk of recividism given variables such as sex, age,
race and prior criminal history of the subject, and (4) Once the
classifier is trained, it is evaluated on the test set by computing
the metrics above-mentioned.</p>
      <p>In total, nine experiments will be performed: the baseline,
training one separate model for each race, completely omitting
the race variable, and six related to rebalancing either the training
set or both the training and test set, with each of the rebalancing
techniques presented: undersampling, oversampling and SMOTE.
The code of the experiments is publicly available in https://gitlab.
com/lucentia/DOLAP2022.
3.7</p>
    </sec>
    <sec id="sec-10">
      <title>Algorithm Results Interpretation</title>
      <p>Finally, in order to compare the output of the XGBoost classifier
algorithm and to be able to measure if it has been fair, we have
created Table 1 and Table 2. It should be noted that this tables
can be easily replicated in any Artificial Intelligence challenge.</p>
      <p>First, Table 1 represents the True Positive Rates (TPR) and
False Positive Rates (FPR) for Caucasian and African-American
groups. In this specific case, False Positive Rates (FPR) were the
most sensitive classification, since classifying non-recidivists as
a high risk of recidivism can bring them negative consequences.</p>
      <p>As we can see in Table 1, the techniques that achieve the best
FPR for the Caucasian race are Original Train - Original Test and
Remove race attribute with a 0.172 rate. Meanwhile, Remove race
attribute obtains the best FPR for African-American race with a
0.347 rate. It is remarkable how the Caucasian race obtains the
best results when the data is original, while the African-American
race obtains the best results when the race attribute is removed.</p>
      <p>However, even though using these techniques we get better
False Positive rates, the diference between getting a 17,2% of
Caucasian defendants wrongly accused as a recidivists and that
the 34,7% of African-American defendants were wrongly accused
as a recidivists would still be considered highly unfair.</p>
      <p>Additionally, our methodology generates Table 2 that
calculates and compares the fairness definitions chosen in Section
3.4. Using Table 2 is possible to know, depending on the type
of fairness pursued, which technique will bring better results.
We have marked the best (green) and worst (red) techniques
for each definition of fairness and for the overall accuracy. We
should clarify that a lower fairness number represents that there
is less diference between the protected groups, i.e. it is more fair.
However, the accuracy is better when its value is higher, since it
means that there have been fewer errors in the classification.</p>
      <p>As we can observe, the technique that gets the best score in
terms of Equal Opportunity, Equalized Odds and Accuracy is to
remove the protected attribute, in this case the attribute race.
However, other highly used techniques as SMOTE gets the worst
results in terms of Equal Opportunity and Equalized Odds.
4</p>
    </sec>
    <sec id="sec-11">
      <title>CONCLUSIONS AND FUTURE WORK</title>
      <p>The use of Artificial Intelligence (AI) systems is rapidly spreading
across diferent sectors and organizations. More and more
important decisions are being made supported by AI systems which
have not been thoroughly evaluated. It is essential to ensure that
these decisions do not reflect discriminatory behavior towards
certain groups. Nevertheless, most of the approaches mainly
focus on improving the prediction accuracy of algorithms without
considering fairness in their development.</p>
      <p>Thus, in this paper we have presented a methodology that
allows AI practitioners to measure and improve fairness in AI
algorithms in a systematic way. Our novel methodology
considers fairness as a first-class citizen and introduces new steps with
respect to the traditional process of AI development such as: (i) a
bias analysis, (ii) fairness definition and (iii) fairness evaluation.
We have also analyzed how the most common data rebalancing
approaches afect the fairness of AI predictions taking into
account both (i) the target variable and (ii) the protected attributes.
Furthermore, our methodology generates a set of tables for
choosing the best rebalancing alternative for each particular definition
of fairness. Both our methodology as well as the interpretation
of the algorithms results (tables and visualizations) can be easily
replicated in any AI algorithm.</p>
      <p>In order to both exemplify our approach and test the impact
of each rebalancing alternative, we have applied it in a real case
of study. We have implemented a classifier over the COMPAS
dataset, calculating the degree of fairness obtained according to
three diferent fairness definitions.</p>
      <p>Given the obtained results, we consider that by following our
proposed methodology we can avoid falling into the usual pitfalls
that lead to controversial outputs when the input datasets include
biased protected attributes. In addition, it allows us to discover
which is the most appropriate data rebalancing techniques to try
to maximize diferent definitions of fairness.</p>
      <p>Regarding the limitations of our proposal, we should take
into account that our proposal has achieved successful results
when protected attributes are individual and binary. However,
when as the number of protected attributes increases, rebalancing
becomes more dificult. Future work is needed in order to study
the best approach to carry out rebalancing techniques in the
cases where there are several protected attributes defined and
the classes contain a large number of diferent attribute groups.</p>
    </sec>
    <sec id="sec-12">
      <title>ACKNOWLEDGMENTS</title>
      <p>This work has been co-funded by the AETHER-UA project (PID
2020-112540RB-C43), funded by Spanish Ministry of Science
and Innovation and the BALLADEER (PROMETEO/2021/088)
projects, funded by the Conselleria de Innovación, Universidades,
Ciencia y Sociedad Digital (Generalitat Valenciana).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Julia</given-names>
            <surname>Angwin</surname>
          </string-name>
          , Jef Larson, Surya Mattu, and
          <string-name>
            <given-names>Lauren</given-names>
            <surname>Kirchner</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Machine Bias - There's software used across the country to predict future criminals. And it's biased against blacks</article-title>
          . https://www.propublica.org/article/ machine-bias
          <article-title>-risk-assessments-in-criminal-sentencing.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Matias</given-names>
            <surname>Barenstein</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>ProPublica's COMPAS Data Revisited</article-title>
          . CoRR abs/
          <year>1906</year>
          .04711 (
          <year>2019</year>
          ). arXiv:
          <year>1906</year>
          .04711
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>The</surname>
            <given-names>U.S. Census</given-names>
          </string-name>
          <string-name>
            <surname>Bureau</surname>
          </string-name>
          .
          <year>2010</year>
          .
          <article-title>Population percent change</article-title>
          . https://www. census.gov/quickfacts/FL.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Alessandro</given-names>
            <surname>Castelnovo</surname>
          </string-name>
          , Riccardo Crupi, Greta Greco, and
          <string-name>
            <given-names>Daniele</given-names>
            <surname>Regoli</surname>
          </string-name>
          .
          <year>2021</year>
          .
          <article-title>The zoo of Fairness metrics in Machine Learning</article-title>
          .
          <source>CoRR abs/2106</source>
          .00467 (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Nitesh</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Chawla</surname>
            , Kevin W. Bowyer, Lawrence O. Hall, and
            <given-names>W. Philip</given-names>
          </string-name>
          <string-name>
            <surname>Kegelmeyer</surname>
          </string-name>
          .
          <year>2002</year>
          .
          <article-title>SMOTE: Synthetic Minority Over-sampling Technique</article-title>
          .
          <source>Journal of artificial intelligence research 16</source>
          (
          <year>2002</year>
          ),
          <fpage>321</fpage>
          -
          <lpage>357</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Irene</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <surname>Fredrik D Johansson</surname>
            , and
            <given-names>David</given-names>
          </string-name>
          <string-name>
            <surname>Sontag</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Why Is My Classifier Discriminatory?</article-title>
          .
          <source>In Advances in Neural Information Processing Systems</source>
          , Vol.
          <volume>31</volume>
          . Curran Associates, Inc.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Tianqi</given-names>
            <surname>Chen</surname>
          </string-name>
          and
          <string-name>
            <given-names>Carlos</given-names>
            <surname>Guestrin</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>XGBoost: A scalable tree boosting system</article-title>
          .
          <source>Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (Aug</source>
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>European</given-names>
            <surname>Commission</surname>
          </string-name>
          .
          <year>2021</year>
          .
          <article-title>Ethics guidelines for trustworthy AI</article-title>
          . https: //digital-strategy.ec.europa.eu/en/library/ethics
          <article-title>-guidelines-trustworthy-ai.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Sam</given-names>
            <surname>Corbett-Davies</surname>
          </string-name>
          , Emma Pierson, Avi Feller, Sharad Goel, and
          <string-name>
            <given-names>Aziz</given-names>
            <surname>Huq</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Algorithmic Decision Making and the Cost of Fairness</article-title>
          . (
          <year>2017</year>
          ),
          <fpage>797</fpage>
          -
          <lpage>806</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Cynthia</surname>
            <given-names>Dwork</given-names>
          </string-name>
          , Moritz Hardt, Toniann Pitassi, Omer Reingold, and Richard Zemel.
          <year>2012</year>
          .
          <article-title>Fairness through awareness</article-title>
          .
          <source>In Proceedings of the 3rd innovations in theoretical computer science conference. Association for Computing Machinery</source>
          ,
          <fpage>214</fpage>
          -
          <lpage>226</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Salvador</given-names>
            <surname>García</surname>
          </string-name>
          and Francisco Herrera.
          <year>2009</year>
          .
          <article-title>Evolutionary undersampling for classification with imbalanced datasets: Proposals and taxonomy</article-title>
          .
          <source>Evolutionary computation 17</source>
          ,
          <issue>3</issue>
          (
          <year>2009</year>
          ),
          <fpage>275</fpage>
          -
          <lpage>306</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Moritz</surname>
            <given-names>Hardt</given-names>
          </string-name>
          , Eric Price, and
          <string-name>
            <given-names>Nati</given-names>
            <surname>Srebro</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Equality of opportunity in supervised learning</article-title>
          .
          <source>Advances in neural information processing systems</source>
          <volume>29</volume>
          (
          <year>2016</year>
          ),
          <fpage>3315</fpage>
          -
          <lpage>3323</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kearns</surname>
          </string-name>
          , Seth Neel, Aaron Roth, and Zhiwei Steven Wu.
          <year>2018</year>
          .
          <article-title>Preventing fairness gerrymandering: Auditing and learning for subgroup fairness</article-title>
          .
          <source>In Proceedings of the 35th International Conference on Machine Learning</source>
          , Vol.
          <volume>80</volume>
          . PMLR,
          <fpage>2564</fpage>
          -
          <lpage>2572</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>György</given-names>
            <surname>Kovács</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>An empirical comparison and evaluation of minority oversampling techniques on a large number of imbalanced datasets</article-title>
          .
          <source>Applied Soft Computing</source>
          <volume>83</volume>
          (
          <year>2019</year>
          ),
          <fpage>105662</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Ana</surname>
            <given-names>Lavalle</given-names>
          </string-name>
          , Alejandro Maté, and
          <string-name>
            <given-names>Juan</given-names>
            <surname>Trujillo</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>An Approach to Automatically Detect and Visualize Bias in Data Analytics</article-title>
          .
          <source>In Proceedings of the 22nd International Workshop on Design, Optimization, Languages and Analytical Processing of Big Data, DOLAP@EDBT/ICDT 2020</source>
          , Vol.
          <volume>2572</volume>
          . CEUR-WS.org,
          <volume>84</volume>
          -
          <fpage>88</fpage>
          . http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2572</volume>
          /short11.pdf
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Ninareh</surname>
            <given-names>Mehrabi</given-names>
          </string-name>
          , Fred Morstatter,
          <string-name>
            <given-names>Nripsuta</given-names>
            <surname>Saxena</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Kristina</given-names>
            <surname>Lerman</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Aram</given-names>
            <surname>Galstyan</surname>
          </string-name>
          .
          <year>2021</year>
          .
          <article-title>A survey on bias and fairness in machine learning</article-title>
          .
          <source>ACM Computing Surveys (CSUR) 54</source>
          ,
          <issue>6</issue>
          (
          <year>2021</year>
          ),
          <fpage>1</fpage>
          -
          <lpage>35</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Broward</given-names>
            <surname>County</surname>
          </string-name>
          <article-title>Clerk's Ofice, Broward County Sherrif's Ofice, Florida Department of Corrections, and</article-title>
          <string-name>
            <surname>ProPublica.</surname>
          </string-name>
          <year>2021</year>
          .
          <article-title>COMPAS Recidivism Risk Score Data and Analysis</article-title>
          . https://www.propublica.org/datastore/dataset/ compas
          <article-title>-recidivism-risk-score-data-and-analysis.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <source>[18] The IEEE Global Initiative on Ethics of Autonomous and Intelligent Systems</source>
          .
          <year>2017</year>
          .
          <article-title>Ethically Aligned Design: A Vision for Prioritizing Human Well-being with Autonomous and Intelligent Systems, Version 2</article-title>
          . https://standards.ieee.org/content/dam/ieee-standards/standards/web/ documents/other/ead_v2.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>Nripsuta</given-names>
            <surname>Ani</surname>
          </string-name>
          <string-name>
            <given-names>Saxena</given-names>
            , Karen Huang,
            <surname>Evan</surname>
          </string-name>
          <string-name>
            <surname>DeFilippis</surname>
          </string-name>
          , Goran Radanovic, David C Parkes, and Yang Liu.
          <year>2019</year>
          .
          <article-title>How do fairness definitions fare? Examining public attitudes towards algorithmic definitions of fairness</article-title>
          .
          <source>In Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society</source>
          . 99-
          <fpage>106</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>Neil</given-names>
            <surname>Vigdor</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Apple Card Investigated After Gender Discrimination Complaints</article-title>
          . https://www.nytimes.com/
          <year>2019</year>
          /11/10/business/ Apple-credit
          <string-name>
            <surname>-</surname>
          </string-name>
          card-investigation.html.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <surname>Christina</surname>
            <given-names>Wadsworth</given-names>
          </string-name>
          , Francesca Vera, and
          <string-name>
            <given-names>Chris</given-names>
            <surname>Piech</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Achieving fairness through adversarial learning: an application to recidivism prediction</article-title>
          . CoRR abs/
          <year>1807</year>
          .00199 (
          <year>2018</year>
          ). arXiv:
          <year>1807</year>
          .00199
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>Jordan</given-names>
            <surname>Weissmann</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Amazon Created a Hiring Tool Using A.I. It Immediately Started Discriminating Against Women</article-title>
          . https://slate.com/business/ 2018/10/amazon-artificial
          <article-title>-intelligence-hiring-discrimination-women</article-title>
          .
          <source>html.</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>