## Need of AI in Modern Education: in the Eyes of Explainable AI (xAI)

Supriya Manna, Niladri Sett ∗

SRM University AP Amaravati, Andhra Pradesh 522502, India

## 1 Abstract

Modern Education is not Modern without AI. However, AI's complex nature makes understanding and fixing problems challenging. Research worldwide shows that a parent's income greatly influences a child's education. This led us to explore how AI, especially complex models, makes important decisions using Explainable AI tools. Our research uncovered many complexities linked to parental income and offered reasonable explanations for these decisions. However, we also found biases in AI that go against what we want from AI in education: clear transparency and equal access for everyone. These biases can impact families and children's schooling, highlighting the need for better AI solutions that offer fair opportunities to all. This chapter tries to shed light on the complex ways AI operates, especially concerning biases. These are the foundational steps towards better educational policies, which include using AI in ways that are more reliable, accountable, and beneficial for everyone involved.

## 2 Introduction

The trajectory of the education system has traversed a remarkable journey from medieval times to the modern era, reflecting societal advancements, technological innovations, and evolving pedagogical paradigms. Initially characterized by rudimentary pedagogical methods, limited accessibility, and a rigid curriculum, the education landscape has undergone transformative changes, albeit with persistent challenges.

Historically, the medieval education system was predominantly characterized by religious institutions, emphasizing classical literature, theology, and rote memorization. Access was largely restricted to elite echelons of society, with pedagogical approaches rooted in tradition and conformity.

Fast-forwarding to the modern era, the education system has witnessed democratization, technological integration, and a paradigm shift towards personalized learning. However, contemporary challenges persist, necessitating strategic interventions:

- · Better Recommendation of Courses: Traditional systems often adopt a one-size-fitsall approach, overlooking individual learning preferences and aptitudes. AI-powered recommender systems being employed in book selection [31], utilizing collaborative filtering algorithms, analysing student data to generate personalized course recommendations, and optimizing learning outcomes and engagement. Contemporary software solutions, such as Coursera 's recommendation engine 1 . and platforms like Knewton Alta 2 leverage advanced algorithms to tailor learning pathways based on individual student profiles.

∗ all corresponds to: settniladri@gmail.com

codes: notebook

1. https://www.coursera.org/

2. https://www.wiley.com/en-us/education/alta

- · SWOT Analysis of Students: Comprehensive student evaluation transcends academic performance, necessitating a nuanced understanding of individual strengths, weaknesses, opportunities, and threats. Machine learning models, employing clustering analysis algorithms [32], facilitate intricate SWOT analyses, enabling educators to devise tailored learning strategies and interventions. Software applications like IBM Watson Analytics 3 and Tableau 4 harness sophisticated algorithms to decode complex student profiles, fostering personalized academic trajectories.
- · Transparency for Students: The ambiguity surrounding grading criteria, learning objectives, and assessment methodologies undermines student engagement and comprehension. Natural Language Processing (NLP) techniques, coupled with sentiment analysis algorithms [33], elucidate grading metrics and curricular objectives, fostering transparent and collaborative learning environments. Modern platforms like Turnitin 5 and Grammarly 6 employ AI-driven NLP tools to provide actionable feedback, enhancing transparency and academic integrity.
- · Better Performance Indicators with Personalized Feedback: Conventional performance metrics often lack granularity, overshadowing individual accomplishments and areas of improvement. AI-driven data analytics platforms, harnessing predictive analytics algorithms, empower educators to deliver personalized performance indicators and actionable insights, optimizing learning trajectories and student engagement. Software solutions such as Blackboard Analytics 7 and Moodle 8 leverage advanced algorithms to analyze student data, facilitating targeted interventions and pedagogical enhancements.

## 2.1 The Point of This Book Chapter:

Numerous studies have underscored the profound potential of Artificial Intelligence (AI) in augmenting and revitalizing the contemporary education system [26, 27, 28, 29]. However, the integration of 'Modern' education with AI is not devoid of challenges, particularly concerning financial implications and accessibility disparities.

A plethora of global research, spanning developed nations such as Norway [23], Japan [21], developing nations such as China [22] to least developed African countries [24] like Ghana [25], elucidates a direct correlation between parental income and the quality of education availed by their progeny. In the 21st century landscape, while AI embodies an indispensable cornerstone of educational advancement, its implementation entails substantial costs encompassing resource allocation, hiring, cross-testing, verification, licensing, and deployment [34]. Consequently, the escalating financial exigencies associated with modern education exacerbate accessibility barriers 9, 10 [35], constraining students hailing from economically disadvantaged backgrounds. Regrettably, instances abound wherein academically meritorious students, despite securing admissions into prestigious global universities, confront insurmountable financial hurdles, precluding educational attainment due to parental income constraints.

We acknowledge the fact that parental income substantially influences the attainability of educational opportunities for students. In this study, we want to investigate this aspect of parental income. How the income of an individual is dependent on which factors. How can we visualise those dependencies? Moreover, are those dependencies fair? If not, how can we investigate the unfairness? Is the Notion of feature importance enough to recognise a biased model? This book chapter endeavours to delve deeper into these pivotal nexus. We use several methodologies for visualising the

3. https://www.ibm.com/watson

4. https://www.tableau.com/

5. https://www.turnitin.com/

6. https://www.grammarly.com/

7. https://www.blackboard.com

8. https://moodle.org/

9. https://www.thehindubusinessline.com/opinion/columns/c-p-chandrasekhar/the-alarming-rise-in-educationcosts-in-new-india/article33215181.ece

10. https://timesofindia.indiatimes.com/india/rising-cost-of-education-worries-parents-surveyshows/articleshow/17946981.cms?from=mdr

feature importance from a model and then we investigate whether are they enough for investigating (un)fairness. We use the adult census dataset in this study to work on this binary classification problem of predicting whether an individual (can) earn more than 50k USD a year, given the other attribute. This is the primary indicator for our study where we're presuming (based on the earlier studies mentioned above) that the individual, as a parent , enhances the chance of availing better education for his progeny. Through rigorous analysis and interpretation, this chapter aspires to furnish insights, foster dialogue, and catalyze informed interventions addressing the confluence of AI, education, and socio-economic disparities, steering towards an inclusive and equitable educational landscape.

In this book chapter, we have extensively scrutinized several recent research papers, tutorials, official documentation, and internet articles to gather information and reproduce the relevant results from current research. This book chapter is meant to be suitable for both technical as well as nontechnical readers. We have, furthermore, considered numerous ways of structuring this chapter inspired by our scrutinization. The links to relevant resources are kept in the footnotes below.

Finally, Our study, by no means, is meant to be devised as an Oracle but we fundamentally believe in asking for explanations for high-stakes decisions taken by AI models for the sake of trustworthiness. In the education sector, this has been stressed in recent times [30], and in this chapter, we are demonstrating the same on one of the fundamental aspects of availing 'Modern' education: parental income using state-of-the-art xAI techniques.

## 3 Inherent Complexity: A Double-Edged Sword

As discussed, while AI harbours immense potential to revolutionize education, fostering personalized learning, enhancing administrative efficiency, and facilitating data-driven decision-making, its inherent complexity poses formidable challenges, particularly concerning transparency and interpretability in deducing decisions which concurrently introduces nuanced challenges that necessitate vigilant scrutiny and strategic navigation. Sophisticated AI software including Llms [36, 41, 42], SaaS and commercial software such as [37, 40], and virtual assistants [43], while endowed with remarkable capabilities, often manifests as convoluted enigmas, presenting two underlying problems:

- 1. Explanation Gap : AI models, characterized by intricate hyperspaces defined by multifaceted weights and attributes, inherently lack traceability and debuggability. The stochastic nature of the training phase, coupled with the intricacies of the hyperspace, obfuscates the retrieval and comprehension of model parameters and rationales. Consequently, elucidating the 'why' behind AI predictions remains a daunting endeavor, devoid of straightforward exploration avenues.
- 2. Trust in the 'Black-Box' : For seasoned machine learning practitioners well-versed in model architectures and training phases, navigating the intricacies of AI may seem feasible. However, for end-users devoid of specialized expertise, AI often emerges as an opaque 'black box', necessitating dual proficiency as AI and domain experts to engender trust. While domain expertise may be commonplace, it scarcely equates to an unwavering confidence in results generated by intricate AI systems, perpetuating scepticism and apprehension.

resources :

https://bit.ly/3u2v0ay

https://rb.gy/dd2dcx

https://bit.ly/3S1S9lo

https://rb.gy/ekghfm

https://rb.gy/qusxjj https://rb.gy/fq4ysa

https://shorturl.at/dhAO7

https://shorturl.at/ntvBH

https://bit.ly/425kmg4

https://bit.ly/3O2DBko https://bit.ly/3SjuPRR

## 3.1 Explainable AI (XAI): Bridging the Trust Gap

In the pursuit of deciphering the intricacies of 'black-box' AI systems and fostering trust among end-users, scientists have embarked on a relentless quest, culminating in the emergence of Explainable AI (XAI) as an active area of research in this decade. XAI transcends traditional AI paradigms, endeavouring to illuminate the opaque nature of complex machine learning models by enabling:

- 1. Enhanced Explainability : XAI endeavours to cultivate machine learning techniques that aim to yield more explainable models without compromising learning performance or prediction accuracy [47]. By elucidating model rationale and inherent strengths and weaknesses, XAI augments user comprehension and trust in several high stakes (for example: [46]), pivotal for fostering collaborative partnerships between humans and AI entities.
- 2. Human-Centric Design : XAI advocates for the integration of state-of-the-art humancomputer interface techniques, facilitating the translation of intricate models into comprehensible and actionable insights for end-users [45]. By crafting intuitive explanation dialogues and interfaces, XAI empowers users to navigate, interpret, and leverage AI capabilities effectively, transcending the complexities of underlying algorithms and architectures.
- 3. Diverse Methodological Portfolio : Recognizing the multifaceted challenges inherent in achieving explainability without compromising performance, XAI adopts a multifaceted approach, exploring and integrating diverse techniques across the performance-versus-explainability trade space [44]. By curating a portfolio of methodologies, XAI equips developers with versatile design options, facilitating tailored solutions aligned with specific application domains and user requirements.

## 4 Methodology: Explainability, Interpretability and more

Before jumping into the technical and mathematical intricacies of xAI, it is critical to distinguish between explainability and interpretability in machine learning applications for our objectives. We regard interpretability as a means of obtaining explainability. Explainable AI (or XAI) refers to models whose results can be comprehended by ordinary humans. However, this does not imply that the model is required to be interpretable. That is, there are two types of models: interpretable models and non-interpretable models. Linear regression, logistic regression, decision trees etc are examples of interpretable models. Practitioners can simply determine how the model outputs either its label or value. Then there are non-interpretable models for image processing and natural language processing, such as random forests, feed-forward neural networks, and deep learning architectures [7]. In order to make sense of the process by which the intricate model that was employed to generate the forecast came to be, we employ post hoc explanations [48] for these. This is frequently accomplished by examining the model's gradients or using stand-in models to simulate behavior in specific areas.

We believe that the line that separates interpretability from explainability also follows the processes of the human mind. For example, human beings occasionally use deliberate, logical thinking to arrive at a conclusion. As a result, the logic can be examined in detail. In other cases, people base their initial conclusions on intuition after analyzing complex facts over extended periods of time. Then, just as we use post hoc explanations on black box models, the people look for an explanation for a decision. Determining which strategy is superior for explainable AI is probably going to need major advancements in human cognitive science and our comprehension of the functioning of the human brain.

## 4.1 Post-hoc Explainations

In regards to the realistic scenario [48], in which the end user looks at the details after a study has been concluded and the data collected, our goal is to provide context for the predictions of a machine learning model. In order to do this, we must first define what it means to produce an explanation. An explanation typically states that some features are more significant than others or explains how an input feature can influence the output's magnitude in a positive or negative

way. It usually links the feature values of an instance to its model prediction in a way that is easily understood by humans. Not all explanations must be focused on the significance of a feature. They could also be particular cases or groups of influential instances. They could be real English languages or collections of rules. In fact, difficulties with homogeneous judgment arise from a variety of reasons. In our current study, we focus primarily on the importance of the feature.

Post hoc approaches might be model-agnostic or model-dependent, global or local. Modeldependent interpretation techniques are focused on a particular model or set of models. Modelagnostic tools, on the other hand, can be used on any machine learning model, no matter how complex. These agnostic approaches typically analyze feature input and output pairs. Modelagnostic methods frequently profit from the reality that certain practitioners may not have access to the original model's specific weights and parameters. In our current work, we have been focused on local 'Post-hoc' explanation methods in model-agnostic fashion. Below is the description of the methods we used in study for generating post-hoc explanation.

- 1. LIME [2]: One of the most well-known post hoc methods is LIME or local interpretable model-agnostic explanations. LIME's concept is to build a surrogate model in a local area at a certain target point to explain the significance of the input features. Because it hypothesized that sophisticated black boxes tend to demonstrate more linear or simple behavior in local neighborhoods. We build new samples for LIME by perturbing for the target sample. We then query the black-bo model to obtain the label of the perturbed data points, scores them using a kernel, and train a sparse linear model using the data-points and labels.
- 2. KernalSHAP [3]: Shapley values [4] are based on the idea that a prediction may be explained by imagining each feature value of the instance as a 'player' in a game where the prediction is the payoff. Shapley values, a strategy from coalitional game theory, teach us how to allocate the 'payout' among the characteristics in a fair manner.
- Shapley regression values serve as indicators of feature importance in linear models, particularly when confronted with multicollinearity. This approach mandates the model's retraining across all conceivable feature subsets S ⊆ F , where F denotes the complete set of features. Each feature is assigned an importance value, signifying the impact of its inclusion on the model prediction. The computation involves training a model f S ∪{ } i with the specific feature and another model f S without it. Subsequently, the discrepancy in the predictions for the current input is assessed as f S ∪{ } i ( x S ∪{ } i ) -f S ( x S ), where x S represents the input feature values within the set S . As the influence of excluding a feature is contingent on other model features, these differences are computed for all feasible subsets S ⊆ F \{ } i . Subsequently, the Shapley values are calculated and used as feature attributions, representing a weighted average of all potential differences [4, 3]:

$$\phi _ { i } = \sum _ { S \subset F \vee \{ i \} } \frac { \left | S \right |! \left ( \left | F \right | - \left | S \right | - 1 \right )! } { \left | F \right |! } \left [ f _ { S \cup \{ i \} } \left ( x _ { S \cup \{ i \} } \right ) - f _ { S } \left ( x _ { S } \right ) \right ]$$

However, both LIME and Kernel SHAP share the same foundation but choose different kernels and loss functions to calculate the importance of features [5, 1]. With this, we are now moving to Definitions . Thoughts have been mainly drawn from [10, 11, 12]

Definition 1 (Algorithm Interpretability) . An algorithm's interpretability is its ability to give users enough expressive data to comprehend how the algorithm operates. In this case, human-readable text or graphics may be considered interpretable domains. 'If something is interpretable, it is possible to find its meaning or to find a particular meaning in it,' according to the Cambridge Dictionary.

Definition 2 (Interpretation) . Interpretation is the process of reducing a complicated domain-like the outputs of a machine learning model-to meaningful, rational, and humanunderstandable ideas.

Definition 3 (Explanation) . An explanation is extra metadata that describes the feature importance or relevance of an input instance to a certain output classification. It can be produced by the machine learning model itself or by an external method.

An xAI post hoc explanation (here, LIME &amp; KernelShaP) works by assuming that the model architecture is a black box. Most post hoc explainers build a single loss function using heuristics, gradients, game theory, or some other method [1]. However, the black-box functions are based on the feature set's global domain. These explainers, on the other hand, mimic functions in the local domain perturbing a few examples.

## 5 Experimental Setup

The study follows the setup given in [38, 39] for experimentation and implementation particulars. It uses the Adult Census Income dataset from the UCI Machine Learning Repository . We start our experiments by training an XGBoost [13] model. The following performance metrics were achieved for the model:

|       |   Accuracy |   Precision |   Recall |   F1 |   AUC |
|-------|------------|-------------|----------|------|-------|
| Train |       0.88 |        0.82 |     0.65 | 0.73 |  0.95 |
| Test  |       0.87 |        0.78 |     0.62 | 0.69 |  0.92 |

We start our investigation on the trained XGBoost based on easy to complex hypothesis gradually for calculating feature importance. We start with the ELI5 library[14]. We used the library's 'Permutation Importance' (PI) method to compute the feature importance. It works on the hypothesis that the importance of a feature can be quantified by the drop in the intended metrics (accuracy, precision etc) when removed. In this study, we use AUC [50] as the performance metric to evaluate the trained XGBoost model. We report the PI for both train and test counterparts in Figure 1: the left column shows the PI in the train set and the one in the right is for the test. Despite the fact that the order of the most significant traits varies, it appears that the most crucial one ( married 1 ) remains the same in both folds. Furthermore, the six most important variables based on PI are retained in training and testing. We anticipate their difference in relative ordering are mostly due to the sample dispersion between the folds. Next, we use a more sophisticated method named SHAP [3] for visualizing the feature importance. We also want to compare the feature importance from the trained XGBoost with the ones obtained from SHAP. We use Gain as the default feature importance for the XGBoost model. Gain of a feature is computed by taking its relative contribution in each tree for the whole model. In the comparison between the SHAP feature importance and XGBoost's counterpart, we take the top 20 features in both of them. In Figure 2, we report the XGBoost feature importance. We compare the same against the mean of the absolute SHAP values presented in Figure 3. Finally, in Figure 4 we report the SHAP values of all these features to demonstrate their impact on the model.

It is clear from the comparison that the most important feature ( married 1 ) is common in both the comparison. Next, education.num is there within the top-3 features in both feature importance ranking. However, the rest of the features including ' age ' are either not in common or ranked differently based on their importance in the comparisons. Next, we move to the summary plots produced by SHAP for a nuanced overview of feature importance.

## 5.1 Summary Plot SHAP

The SHAP Summary Plot (Figure 4 ) offers more information than the conventional plot. The significance of features is arranged according to decreasing feature relevance.

Impact on Prediction : The horizontal axis's position reflects how much or how little the values of the dataset instances for each feature affect the model's output.

Original Value : The colour designates a high or low value (within each feature's range) for each characteristic.

Correlation : A feature's colour (or range of values) and the effect on the horizontal axis are usually used to assess how well it correlates with the model output.

*

| Weight          |                        |                 |                        |
|-----------------|------------------------|-----------------|------------------------|
|                 |                        | 0.0863 = 0.0053 | married_1              |
| 0.0710+0.0018   | education num          | 0.0538 + 0.0022 | capital ~gain          |
| 0.0569 = 0.0026 | gain                   | 0.0521 4 0.0041 | education num          |
| 0.0494 + 0.0023 | age                    | 0.0370+0.0035   | age                    |
| 0.0346 + 0.0016 | hours . week           | 0.0178 4 0.0017 | hours per week         |
| 0.0140 4 0.0011 | capital loss           |                 | capitalloss            |
| 0.0123 4 0.0009 | fnlwgt                 | 0.0078 + 0.0021 | rel_Not-in-family      |
| 0.0086 = 0.0011 | rel_Not-in-family      | 0.0048 = 0.0009 | rel_Unmarried          |
| 0.0048 = 0.0012 | rel_Unmarried          | 0.0019 4 0.0004 | rel_Own-child          |
| 0.0043 + 0.0006 | rel_Wife               | 0.00194 0.0003  | rel_Wife               |
|                 | sex_Male               |                 | sex_Male               |
| 0.0031 4 0.0008 | rel_Own-child          | 0.0015= 0.0001  | class_Self-emp-not-inc |
|                 | class_Self-emp-not-inc | 0.0012+0.0005   | fnlwgt                 |
| 0.0013 = 0.0002 | class_Private          | 0.0003 + 0.0002 | rel_Other-relative     |
|                 | race_White             | 0.0003 = 0.0002 | class_Private          |
|                 | nac_United-States      | 0.0003 = 0.0003 | race_White             |
| 0.0005 = 0.0001 | class_Self-emp-inc     |                 | nac_United-States      |
| 0.0004 + 0.0001 | race_Black             |                 | class_Self-emp-inc     |
| 0.0003 + 0.0001 | class_State gov        | 0.0002 = 0.0001 | race_Black             |
| 0.0003 = 0.0001 | class_Local-gov        | 0.0001 = 0.0001 | nac_Mexico             |
| 46 more         | 46 more                |                 |                        |

46 more

Figure 1: permutation importance

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-e2ca67d6-33ed-4ba7-9a28-fd01782da198.jpg)

Figure 2: XGB feature importance

Figure 3: SHAP feature importance

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-05e245eb-fb3e-4f63-985d-66e04795dc94.jpg)

Notably, SHAP identifies the variable married 1 as having significant interaction, suggesting that individuals who are married and possess higher educational qualifications are more inclined to earn above $ 50,000.

Next, we move to Dependency Plots made by SHAP.

## 5.2 Dependency plots

Dependency plot not only provides the marginal influence the feature has on the model's output, but it also illustrates the relationship with the feature with which it most interacts by colour. This illustrates the model's reliance on the provided feature. The vertical spread of data points indicates interaction effects . We presented some dependency plots (Figure ?? with different pairs of features to present how the interaction is between characteristics and how one influences another.

As depicted in Figure 5, there's a discernible upward trend in marriages between the ages of 20 to nearly 50 years. Meanwhile, Figure 6 reveals a pronounced rise in the education.num concerning capital gains ranging from 0 to 20k USD. Figure 7 further elucidates a consistent progression between educational attainment and marital status. Lastly, Figure 8 underscores that married individuals tend to exhibit higher capital gains compared to their unmarried counterparts.

Now, in the next section, we'll discuss post-hoc local explanations using LIME and SHAP.

## 6 Discovering Local Scales

Local surrogate models [49] are interpretable models that are used to explain individual predictions of black-box machine learning models.

## 6.1 LIME

LIME [2] stands for Local Interpretable Model-independent Explanations. LIME investigates what occurs in model predictions when the input data is changed. It creates a new dataset containing permuted samples and the old model's related predictions. LIME trains interpretable models ( Logistic Regression, Decision Tree, LASSO Regression, etc .) on this synthetic set, which are then weighted by the closeness of the sampled examples to the instance of interest.

The explanation, for example, X will be that of the surrogate model that minimises the loss function (performance measure for example, MSE -between the surrogate model's forecast and the prediction of the original model), while keeping the model's complexity low.

However, LIME has a distinct problem; it is inherently instable. As illustrated in Figure 9, LIME often produces varied explanations for identical instances when executed multiple times. This inconsistency, while not always prevalent, arises from the inherent randomness in generating the surrogate models employed by its linear models. This is not the case with SHAP as it enjoys the uniqueness of SHAP values for a given instance [3]. There are various ways to visualise SHAP explanations. This chapter will go over two of them: the Decision &amp; Force plot [3].

- · Force Plot : It shows the effect that each attribute had on the forecast. The output value (model prediction for the instance) and the base value (average prediction for the whole dataset) are the two important numbers to pay attention to. Greater influence is shown by a larger bar, and the colour shows whether the feature value shifted the forecast from the base value to 1 (red) or 0 (blue).

We run the same experiment 10 times to show that the explanation is unique and does not exhibit randomness like LIME (Figure 9).

- · Decision Plots : The Decision Plot: (Figure 13) displays the same information as the Force Plot . The gray vertical line represents the baseline, and the red line indicates whether each characteristic increased the output value higher or lower than the average forecast. Sometimes the information representation depends upon the end user's intention due to which various representations have been engineered under SHAP library.

Figure 4: SHAP summary plots

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-d59b6366-969d-492b-9cd0-55b07edbb44d.jpg)

Figure 5: dependency plot: ¡ age, married 1 ¿

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-06159108-0816-428f-9e9c-759694f06868.jpg)

Figure 6: dependency plot: ¡ capital.gain, education.num ¿

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-f0730643-0870-4421-b3de-056de652ad6e.jpg)

Figure 7: dependency plot: ¡ education.num, married 1 ¿

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-e671946b-f1e5-41fb-b50b-57621bc93aa8.jpg)

Figure 8: dependency plot: ¡ married 1, capital.gain ¿

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-f95a5100-222f-47ac-bb00-b8654bf323be.jpg)

So far, we have investigated and extensively visualised the feature importance using several representations. Next, we move to mimicking the model globally rather than mere feature importance estimation. We use global surrogate models for globally explaining the model.

## 6.2 Global Explanations

An interpretable model that has been trained to match the predictions of the black-box model to a very large extent is a global surrogate model. By analysing the surrogate model, we may make inferences about the black box model. Though it, by any means, is not a way to predict the internal architecture of the black box, rather it is meant to deduce some insights regarding the prediction. Using a Decision Tree and a Logistic Regression as global surrogate models, we will attempt to approximate the XGBoost .

For both the Train and Test sets, R-squared is negative in the case of Logistic Regression (-1.40 , -1.42 respectively). This occurs when the fit is poorer than using the mean alone. As a result, it is argued that Logistic Regression is not an adequate surrogate model.

However, we have obtained 0 77&amp;0 79 for R-Square scores in train and test respectively in the . . case of decision tree, so we can proceed with the same if it mimicks the trained XGBoost well.

|       |   Accuracy |   Precision |   Recall |   F1 |      AUC |
|-------|------------|-------------|----------|------|----------|
| Train |       0.85 |        0.75 |     0.55 | 0.64 | 0.868197 |
| Test  |       0.85 |        0.75 |     0.55 | 0.64 | 0.865062 |

The Decision Tree approximates the decisions of the XGBoost model quite well as per the scores obtained, hence it may be used as a surrogate model for evaluating the main model. However, it is not guaranteed that the decision tree uses the features in the same way as the XGBoost. It is possible that the tree approximates the XGBoost properly in certain portions of the input space but acts erratically in others as the models are themselves different. We can see in Figure 10 that married 1 is the most important feature followed by capital.gain and education.num . In the importance of the XGBoost feature, these were the top-3 features and in the SHAP dependency plots as well, these were important features to consider. Next, we use another method named SP-LIME for generating global explanation.

## 6.3 Submodularity:

The submodular picking [8] is important as end users may not have time to examine a large number of explanations. It is critical to choose which instances to explain with care. It seeks to provide explanations for machine learning models by attributing their predictions to humanunderstandable features. To achieve this objective effectively, it's essential to execute the explanation model across a varied yet representative collection of instances. By doing so, LIME aims to produce a non-redundant set of explanations that collectively offer a comprehensive understanding of the model's behaviour on a global scale. SP LIME algorithm selects a collection of explanations for the user that are diverse and representative, meaning they do not repeat themselves, while also demonstrating how the model works in general as shown in [2]. Technically, each instance being a collection of features is a subset of the whole feature set. Collecting a minimal or almost minimal number of subsets to cover the whole or almost the whole set is the main agenda of employing the SP LIME algorithm. This problem is a derivation of the set cover problem [9] which is NP-complete. LIME has its own greedy picking [2] algorithm which we have demonstrated in Figure 11. More technical details can be found at [2].

In Figure 11, capital.gain is shown to be the most important attribute in all individual interpretations that distinguish the classes. Following that, depending on the situation, the most important determinants are married 1, education.num , age , and sex . These features align with those pinpointed by the algorithms as globally significant.

So far, we have investigated how the model's features interplay and exhibit patterns. However, whether this interplay is fair &amp; legitimate is what we investigate in the next section.

## 7 All Is Well, but Is All Fair?

In machine learning, 'fairness' refers to the several ways that algorithmic bias in machine learning-based automated decision processes is attempted to be corrected. If computer decisions after a machine-learning process were predicated on factors deemed sensitive, they may be viewed as unjust. These variables can be related to gender, ethnicity, sexual orientation, disability, and other factors. Definitions of prejudice and justice are inherently contentious, as is the case with many ethical notions. Fairness and prejudice are typically taken into consideration when making decisions that have an influence on people's lives. The issue of algorithmic bias in machine learning is generally recognised and researched. Many factors have the potential to distort the results, making them unfair to particular persons or groups.

'FairML' [6], the library for fairness in Python helps to investigate these intricacies.

The underlying idea behind FairML (and many other attempts to audit or understand model behaviour) is to change the inputs of a model to quantify its dependency on them. The model is sensitive to a feature if a modest change to an input feature drastically impacts the output. In order to quantify how much each characteristic influences the prediction model, FairML projects the input orthogonally.

Let F x, y ( ) be a model trained on two characteristics, x and y . The change in output resulting from a modified input, where x ′ perturbs x , can be quantified to measure the model's reliance on x . We express this as:

$$\Delta F ( x ^ { \prime }, y ) = F ( x ^ { \prime }, y ) - F ( x, y )$$

Here, ∆ F x , y ( ′ ) represents the change in the model output, and the perturbation in x ′ renders the other feature y orthogonal to x ′ . However, linear transformation is an orthogonal projection. FairML uses a basis expansion along with greedy search in the case of non-linear relationships. But, in auditing a model, the determination of fairness is often nuanced and context-dependent. The sensitivity of features can vary across different contexts; what may be considered sensitive in one scenario may not hold the same significance in another. The definition of fairness is multifaceted, influenced by user experience, and cultural, social, historical, political, legal, and ethical considerations. Identifying appropriate fairness criteria involves navigating trade-offs among these factors.

The visualization: Figure 14 uses darker shades to signify a contribution to an output of Income ¿ USD 50K; lighter shades stand for the opposite. FairML reveals a significant dependence on sensitive features like race White , nac United -States , and sex Male . Specifically, the model indicates a strong bias: according to its predictions, an individual is more likely to make more than USD 50k if the individual's nationality is of the United States, race is white, and sex is male. Notably, the algorithm's orthogonal projection brings out the relevance of features like race White nac United -States, &amp; sex Male , which did not appear in other interpretation methods like SHAP's Feature Importance. This underscores the importance of investigating for bias along with feature importance. As we observe the popular methods for feature importance may not always be capable of uncovering the intrinsic bias and unfairness in trained models. Now, in the case of availing better education, we started by looking at how parental income influences the education of children and these types of severe bias are what we've found out. This type of societal bias directly impacts the household and the education of the children. In our assessment, the principles of fairness and transparency appear conspicuously absent. All is simply, not Fair [20].

## 8 Concluding remark:

Fairness in machine learning models is a nuanced and evolving concept. Fairness considerations need to account for diverse perspectives, cultural nuances, and the dynamic societal landscape. Moreover, the interpretability of fairness metrics remains an open question. Defining fairness is not a one-size-fits-all endeavour, and achieving fairness often involves navigating complex trade-offs between different dimensions of fairness [15].

Our comprehensive analysis delved deeply into the critical interplay between parental income and its consequential impact on educational opportunities, harnessing advanced xAI tools such as

LIME, SHAP, and the FairML library. By scrutinizing predictive models derived from the Adult Census data, our deliberate preference for sophisticated algorithms like XG Boost and Decision Trees over simpler models aimed to mirror the inherent complexities typical of real-world black-box systems. However, our findings unveil a disconcerting pattern: pervasive biases persistently permeate these models. While FairML identified these biases as direct orthogonal projections, SHAP analyses sometimes remained oblivious to them. Intriguingly, LIME's volatility introduced yet another layer of complexity, further complicating our interpretative landscape

In conclusion, we want to revisit the objectives: AI came to education for speed and transparency, a strong pillar for availing education is parental income and when that is being scrutinised, it is showing heavy bias under several tests mimicking the real world. The effort we put here to investigate the situation is solely to question the fundamentals: In society, modern education is the pillar to move the nation ahead whereas the Scope of availing education is deliberately getting shrunk due to several biases and education, as the fundamental right to every citizen is being heavily exclusive to a particular direction where the Bias lends itself. Biases present in the training data may be inadvertently perpetuated or even amplified by xAI algorithms, reinforcing existing societal biases [16, 17, 18]. This is why refining fairness definitions, enhancing the transparency of complex models, and mitigating biases in training data are key challenges that warrant continued attention and collaborative efforts from the research and practitioner communities. Through constructive criticism and iterative refinement, xAI can evolve into a more robust and ethically grounded field [18, 19], fostering trust and accountability in the deployment of artificial intelligence systems.

## 9 Further Work

We are consistently striving for improved policies for Modern education, emphasizing values of Transparency, Equal Opportunity, &amp; Accessibility . Our primary focus lies in harnessing the potential of xAI to enhance policymaking. Operating within the realm of public policy, our endeavour centres on exploring innovative avenues to render education policies more accessible, starting from the grassroots level. Leveraging advanced algorithms, we aim to bring about positive transformations that align with our commitment to creating a more transparent, equitable, and accessible educational landscape.

## References

- [1] Han T, Srinivas S, Lakkaraju H. Which explanation should i choose? a function approximation perspective to characterizing post hoc explanations. Advances in neural information processing systems. 2022 Dec 6;35:5256-68.
- [2] Ribeiro MT, Singh S, Guestrin C. ' Why should i trust you?' Explaining the predictions of any classifier. InProceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining 2016 Aug 13 (pp. 1135-1144).
- [3] Lundberg SM, Lee SI. A unified approach to interpreting model predictions. Advances in neural information processing systems. 2017;30.
- [4] Shapley LS. Notes on the n-person game-ii: The value of an n-person game.
- [5] Hill D, Masoomi A, Ghimire S, Torop M, Dy J. Explanation Uncertainty with Decision Boundary Awareness. arXiv preprint arXiv:2210.02419. 2022 Oct 5.
- [6] Adebayo JA. FairML: ToolBox for diagnosing bias in predictive modeling (Doctoral dissertation, Massachusetts Institute of Technology).
- [7] Molnar C. Interpretable machine learning. Lulu. com; 2020.
- [8] Krause A, Golovin D. Submodular function maximization. Tractability. 2014 Feb 6;3(71-104):3.
- [9] Feige U. A threshold of ln n for approximating set cover. Journal of the ACM (JACM). 1998 Jul 1;45(4):634-52.

| [10]   | Arrieta AB, D´az-Rodr´guez ı ı N, Del Ser J, Bennetot A, Tabik S, Barbado A, Garc´a ı S, Gil- L´pez o S, Molina D, Benjamins R, Chatila R. Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information fusion. 2020 Jun 1;58:82-115.   |
|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [11]   | Bellucci M, Delestre N, Malandain N, Zanni-Merk C. Towards a terminology for a fully contex- tualized XAI. Procedia Computer Science. 2021 Jan 1;192:241-50.                                                                                                                                                |
| [12]   | Adadi A, Berrada M. Peeking inside the black-box: a survey on explainable artificial intelligence (XAI). IEEE access. 2018 Sep 16;6:52138-60.                                                                                                                                                               |
| [13]   | Chen T, Guestrin C. Xgboost: A scalable tree boosting system. InProceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining 2016 Aug 13 (pp. 785-794).                                                                                                               |
| [14]   | Kawakura S, Hirafuji M, Ninomiya S, Shibasaki R. Adaptations of Explainable Artificial In- telligence (XAI) to Agricultural Data Models with ELI5, PDPbox, and Skater using Diverse Agricultural Worker Data. European Journal of Artificial Intelligence and Machine Learning. 2022 Dec 2;1(3):27-34.      |
| [15]   | Slack D, Hilgard S, Jia E, Singh S, Lakkaraju H. Fooling lime and shap: Adversarial attacks on post hoc explanation methods. InProceedings of the AAAI/ACM Conference on AI, Ethics, and Society 2020 Feb 7 (pp. 180-186).                                                                                  |
| [16]   | Deshpande A, Sharp H. Responsible AI Systems: Who are the Stakeholders?. InProceedings of the 2022 AAAI/ACM Conference on AI, Ethics, and Society 2022 Jul 26 (pp. 227-236).                                                                                                                                |
| [17]   | Soklaski R, Goodwin J, Brown O, Yee M, Matterer J. Tools and practices for responsible AI engineering. arXiv preprint arXiv:2201.05647. 2022 Jan 14.                                                                                                                                                        |
| [18]   | McElhaney K, Smith G, Rustagi I, Groth OJ. Responsible AI: Tackling Tech's Largest Corpo- rate Governance Challenges. The Berkeley-Haas Case Series. University of California, Berkeley. Haas School of Business; 2023.                                                                                     |
| [19]   | Amarasinghe K, Rodolfa KT, Lamba H, Ghani R. Explainable machine learning for public policy: Use cases, gaps, and research directions. Data & Policy. 2023;5:e5.                                                                                                                                            |
| [20]   | Amodei D, Olah C, Steinhardt J, Christiano P, Schulman J, Man´ e D. Concrete problems in AI safety. arXiv preprint arXiv:1606.06565. 2016 Jun 21.                                                                                                                                                           |
| [21]   | Machebe CH, Ezegbe BN, Onuoha J. The Impact of Parental Level of Income on Students' Academic Performance in High School in Japan. Universal Journal of Educational Research. 2017;5(9):1614-20.                                                                                                            |
| [22]   | Lin T, Lv H. The effects of family income on children's education: An empirical analysis of CHNS data. Research on Modern Higher Education. 2017 Apr;4(02002).                                                                                                                                              |
| [23]   | Wiborg ØN, Gr¨tz a M. Parents' income and wealth matter more for children with low than high academic performance: Evidence from comparisons between and within families in egalitarian Norway. Research in social stratification and mobility. 2022 Jun 1;79:100692.                                       |
| [24]   | Glick P, Sahn DE. Schooling of girls and boys in a West African country: the effects of parental education, income, and household structure. Economics of education review. 2000 Feb 1;19(1):63-87.                                                                                                         |
| [25]   | Ani-Asamoah Marbuah D. Influence of Parental Income and Educational Attainment on Chil- dren's Years of Schooling: Case of Ghana.                                                                                                                                                                           |
| [26]   | Woolf B. AI in Education. University of Massachusetts at Amherst, Department of Computer and Information Science; 1991.                                                                                                                                                                                     |

| [27]   | Zhai X, Chu X, Chai CS, Jong MS, Istenic A, Spector M, Liu JB, Yuan J, Li Y. A Review of Artificial Intelligence (AI) in Education from 2010 to 2020. Complexity. 2021 Apr 20;2021:1-8.                                                                 |
|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [28]   | Beck J, Stern M, Haugsjaa E. Applications of AI in Education. XRDS: Crossroads, The ACM Magazine for Students. 1996 Sep 1;3(1):11-5.                                                                                                                    |
| [29]   | Tahiru F. AI in education: A systematic literature review. Journal of Cases on Information Technology (JCIT). 2021 Jan 1;23(1):1-20.                                                                                                                    |
| [30]   | Vincent-Lancrin S, Van der Vlies R. Trustworthy artificial intelligence (AI) in education: Promises and challenges.                                                                                                                                     |
| [31]   | Cho E, Han M. AI powered book recommendation system. InProceedings of the 2019 ACM Southeast Conference 2019 Apr 18 (pp. 230-232).                                                                                                                      |
| [32]   | Xu D, Tian Y. A comprehensive survey of clustering algorithms. Annals of Data Science. 2015 Jun;2:165-93.                                                                                                                                               |
| [33]   | Medhat W, Hassan A, Korashy H. Sentiment analysis algorithms and applications: A survey. Ain Shams engineering journal. 2014 Dec 1;5(4):1093-113.                                                                                                       |
| [34]   | Luccioni AS, Jernite Y, Strubell E. Power Hungry Processing: Watts Driving the Cost of AI Deployment?. arXiv preprint arXiv:2311.16863. 2023 Nov 28.                                                                                                    |
| [35]   | Li H. The rising cost of higher education: A supply and demand analysis. NY University. 2013 May.                                                                                                                                                       |
| [36]   | Touvron H, Martin L, Stone K, Albert P, Almahairi A, Babaei Y, Bashlykov N, Batra S, Bhargava P, Bhosale S, Bikel D. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288. 2023 Jul 18.                                 |
| [37]   | Malohlava M, Hava J, Mehta N. Machine learning with sparkling water: H2o+ spark. H2O. ai Inc. 2016 Apr.                                                                                                                                                 |
| [38]   | Pretto, F. (2020, July 30). Uncovering the magic: Interpreting machine learning black-box models. Medium. https://towardsdatascience.com/uncovering-the-magic-interpreting-machine- learning-black-box-models-3154fb8ed01a                              |
| [39]   | Pretto, F. (2020b, August 12). Inclusive machine learning: Addressing model fair- ness. Medium. https://towardsdatascience.com/inclusive-machine-learning-addressing-model- fairness-532884ecd859                                                       |
| [40]   | Shrivastava M. Learning Salesforce Einstein. Packt Publishing Ltd; 2017 Jun 28.                                                                                                                                                                         |
| [41]   | Team G, Anil R, Borgeaud S, Wu Y, Alayrac JB, Yu J, Soricut R, Schalkwyk J, Dai AM, Hauth A, Millican K. Gemini: A family of highly capable multimodal models. arXiv preprint arXiv:2312.11805. 2023 Dec 19.                                            |
| [42]   | Wu T, He S, Liu J, Sun S, Liu K, Han QL, Tang Y. A brief overview of ChatGPT: The history, status quo and potential future development. IEEE/CAA Journal of Automatica Sinica. 2023 May 1;10(5):1122-36.                                                |
| [43]   | Kepuska V, Bohouta G. Next-generation of virtual personal assistants (microsoft cortana, apple siri, amazon alexa and google home). In2018 IEEE 8th annual computing and communication workshop and conference (CCWC) 2018 Jan 8 (pp. 99-103). IEEE.    |
| [44]   | Crook B, Schl¨ter u M, Speith T. Revisiting the performance-explainability trade-off in explain- able artificial intelligence (XAI). In2023 IEEE 31st International Requirements Engineering Conference Workshops (REW) 2023 Sep 4 (pp. 316-324). IEEE. |

| [45]   | Horvati´ c D, Lipic T. Human-centric AI: The symbiosis of human and artificial intelligence. Entropy. 2021 Mar 11;23(3):332.                                                                                                                                                                              |
|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [46]   | Mahbooba B, Timilsina M, Sahal R, Serrano M. Explainable artificial intelligence (XAI) to enhance trust management in intrusion detection systems using decision tree model. Complexity. 2021 Jan 28;2021:1-1.                                                                                            |
| [47]   | Arrieta AB, D´az-Rodr´guez ı ı N, Del Ser J, Bennetot A, Tabik S, Barbado A, Garc´a ı S, Gil- L´pez o S, Molina D, Benjamins R, Chatila R. Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information fusion. 2020 Jun 1;58:82-115. |
| [48]   | Jesus S, Bel´m e C, Balayan V, Bento J, Saleiro P, Bizarro P, Gama J. How can I choose an explainer? An application-grounded evaluation of post-hoc explanations. InProceedings of the 2021 ACM conference on fairness, accountability, and transparency 2021 Mar 3 (pp. 805-815).                        |
| [49]   | N´brega o C, Marinho L. Towards explaining recommendations through local surrogate models. InProceedings of the 34th ACM/SIGAPP Symposium on Applied Computing 2019 Apr 8 (pp. 1671-1678).                                                                                                                |
| [50]   | Bradley AP. The use of the area under the ROC curve in the evaluation of machine learning algorithms. Pattern recognition. 1997 Jul 1;30(7):1145-59.                                                                                                                                                      |

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-65cab5e9-93a7-4a00-84fa-9dbb528ee94b.jpg)

Local explanation for class 1

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-b62a4e38-29f1-4f29-8184-fecce4d3c24f.jpg)

Local explanation for class 1

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-fec3cc7c-9f69-4685-a5b6-910ebcdb58ba.jpg)

Local explanation for class 1

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-74a9c1b9-c97c-4d33-954b-e7b5b0dca263.jpg)

Local explanation for class 1

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-8de6d050-2668-4102-9f03-e01c2c6d9d2e.jpg)

Local explanation for class 1

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-a646a513-47c5-43d1-8097-8bb237c65de3.jpg)

Local explanation for class 1

Local explanation for class 1

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-d67ff7b3-60da-43af-acb5-35ffadabb842.jpg)

Local explanation for class 1

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-a6f83796-173d-4f40-880c-0d8a1fc5a8f9.jpg)

19

Figure 9: Inherent Instability of LIME

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-2026dfe3-91c1-4ecb-9100-facbf439365d.jpg)

Figure 10: Decision Tree - mimicking the XGBoost

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-2f7d726b-d926-483e-a18c-9b77d3bd055e.jpg)

Figure 11: Submodular pic

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-2378836c-c382-4ef1-9a8c-17995c188105.jpg)

Figure 12: Force Plot

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-0e7b421b-b799-4787-bb7b-e064449b18b8.jpg)

Figure 13: Decision Plot

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-c8d3b644-4d3d-4447-9c3d-c5eb5e75881f.jpg)

## Feature Dependence

Figure 14: Visualizing Fairness using FairML

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00025v3-figure-b12ee88b-b87c-49de-926e-38ae65022a04.jpg)
Supriya Manna Niladri Sett
Need of AI in Modern Education: in the Eyes of Explainable AI (xAI)
Modern Education is not \textit{Modern} without AI. However, AI's complex
nature makes understanding and fixing problems challenging. Research worldwide
shows that a parent's income greatly influences a child's education. This led
us to explore how AI, especially complex models, makes important decisions
using Explainable AI tools. Our research uncovered many complexities linked to
parental income and offered reasonable explanations for these decisions.
However, we also found biases in AI that go against what we want from AI in
education: clear transparency and equal access for everyone. These biases can
impact families and children's schooling, highlighting the need for better AI
solutions that offer fair opportunities to all. This chapter tries to shed
light on the complex ways AI operates, especially concerning biases. These are
the foundational steps towards better educational policies, which include using
AI in ways that are more reliable, accountable, and beneficial for everyone
involved.