Final Project: Impact of Generative AI Usage in Higher Education

ECI 586 Intro to Learning Analytics

Author

Lily McAdam

Published

November 23, 2026

1. Prepare

Purpose & Research Questions

Generative AI tools have become increasingly more popular and prevelant in today’s society, particularly across educational institutions. Because of this, it raises an important question regarding how generative AI can act in a way that enhances learning? Or does it encourage behavior that could potentially negate skill retention and lead to academic burnout?

The target audience for this final project are educators, curriculm designers, and educational staff who establish generative AI policies across institutions or on a course by course basis.

Research Questions for this project include:

  1. How do different generative AI use cases such as Direct Answer Generalization vs Debugging/Troubleshooting relate to semester GPA change and post semester skill retention?
  2. How do institutional AI policies moderate the relationship between weekly AI usage and skill retention?

Data Source and the Context

This analysis is going to use the AI Usage & Student Academic Performance Analysis dataset (Rana Ghulam Nabi, 2026). It was retrieved from Kaggle under a CC0 Public Domain license (https://www.kaggle.com/datasets/ranaghulamnabi/ai-usage-and-student-academic-performance-analysis).

The dataset itself contains 50,000 student records across 16 different variables. The information includes higher education student demographics, studying behaviors, generative AI interaction metrics, institute policies, academic performance, and mental health/well-being metrics.

  • Academic Context Variables: Major_Category, Year_of_Study, Institutional_Policy
  • Behavioral and AI Usage Variables: Weekly_GenAI_Hours, Traditional_Study_Hours, Primary_Use_Case, Prompt_Engineering_Skill, Tool_Diversity, Paid_Subscription, Perceived_AI_Dependency
  • Outcome/Well-Being Variables: Pre_Semester_GPA, Post_Semester_GPA, Skill_Retention_Score, Anxiety_Level_During_Exams, Burnout_Risk_Level

2. Wrangle

Setup and Data Loading

# get libraries
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.2.1     ✔ readr     2.2.0
✔ forcats   1.0.1     ✔ stringr   1.6.0
✔ ggplot2   4.0.4     ✔ tibble    3.3.1
✔ lubridate 1.9.5     ✔ tidyr     1.3.2
✔ purrr     1.2.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(knitr)
library(ggplot2)
library(scales)

Attaching package: 'scales'

The following object is masked from 'package:purrr':

    discard

The following object is masked from 'package:readr':

    col_factor
library(broom)
raw_df <- read_csv("ai_student_impact_dataset (1).csv", show_col_types = FALSE)

tibble(
  Metric = c("Total Student Records", "Total Variables", "Missing Values (NA)", "Duplicate Student IDs"),
  Value = c(
    comma(nrow(raw_df)),
    as.character(ncol(raw_df)),
    as.character(sum(is.na(raw_df))),
    as.character(sum(duplicated(raw_df$Student_ID)))
  )
) |>
  kable(caption = "Initial Data Quality Audit")
Initial Data Quality Audit
Metric Value
Total Student Records 50,000
Total Variables 16
Missing Values (NA) 0
Duplicate Student IDs 0

Data Preprocessing

  • I converted all variable names to lowercase snake_case to ensure consistent naming.

  • I verified that the GPA values fall within 0.0 and 4.0, skill retention scores fall within 0 and 100, and weekly study hours are all non-negative values.

  • I also replaced the underscores with spaces for any categorical labels.

  • I did not filter any rows out because the audit reported 0 NA and 0 missing values and 0 duplicate values.

Data Transformations

I derived 3 features to address my reasearch questions.

  • `gpa_change` (`post_semester_gpa - pre_semester_gpa`)

    • Isolates net academic growth or decline over the semester rather than relying solely on end-of-semester GPA.
  • `total_study_hours` (`weekly_genai_hours + traditional_study_hours`)

    • Captures total weekly study effort across both AI-assisted and traditional study modes.
  • `ai_study_share` (`weekly_genai_hours / total_study_hours`)

    • Quantifies the proportion of a student’s total study time mediated by generative AI, distinguishing heavy overall studiers from students who substitute AI for independent study.
year_levels <- c("Freshman", "Sophomore", "Junior", "Senior", "Graduate",
                 "1st Year", "2nd Year", "3rd Year", "4th Year")
skill_levels <- c("Beginner", "Intermediate", "Advanced")
burnout_levels <- c("Low", "Medium", "Moderate", "High", "Very High")

clean_df <- raw_df |>
  rename_with(tolower) |>
  mutate(
    # Engineer learning analytics metrics
    gpa_change = post_semester_gpa - pre_semester_gpa,
    total_study_hours = weekly_genai_hours + traditional_study_hours,
    ai_study_share = if_else(total_study_hours > 0, weekly_genai_hours / total_study_hours, 0),
    
    # Clean underscores in categorical labels for cleaner plots
    primary_use_case = str_replace_all(primary_use_case, "_", " "),
    institutional_policy = str_replace_all(institutional_policy, "_", " "),
    
    # Apply logical factor ordering
    year_of_study = if (length(intersect(year_levels, unique(year_of_study))) > 0) {
      factor(year_of_study, levels = intersect(year_levels, unique(year_of_study)))
    } else {
      factor(year_of_study)
    },
    prompt_engineering_skill = if (length(intersect(skill_levels, unique(prompt_engineering_skill))) > 0) {
      factor(prompt_engineering_skill, levels = intersect(skill_levels, unique(prompt_engineering_skill)))
    } else {
      factor(prompt_engineering_skill)
    },
    burnout_risk_level = if (length(intersect(burnout_levels, unique(burnout_risk_level))) > 0) {
      factor(burnout_risk_level, levels = intersect(burnout_levels, unique(burnout_risk_level)))
    } else {
      factor(burnout_risk_level)
    }
  )

# Preview engineered features
clean_df |>
  select(student_id, primary_use_case, pre_semester_gpa, post_semester_gpa,
         gpa_change, total_study_hours, ai_study_share) |>
  head(6) |>
  kable(digits = 2, caption = "Preview of Engineered Learning Analytics Variables")
Preview of Engineered Learning Analytics Variables
student_id primary_use_case pre_semester_gpa post_semester_gpa gpa_change total_study_hours ai_study_share
100001 Copywriting/Drafting 2.42 2.39 -0.03 31.44 0.74
100002 Ideation 3.82 3.70 -0.12 17.77 0.06
100003 Summarizing Reading 3.40 3.50 0.10 31.61 0.67
100004 Copywriting/Drafting 3.79 4.00 0.21 17.05 0.11
100005 Debugging/Troubleshooting 3.63 3.80 0.16 21.84 0.43
100006 Debugging/Troubleshooting 3.45 3.67 0.22 20.69 0.31

3. Analyze

Analytical Techniques Applied

In order to investigate my 2 research questions, I applied two techniques:

  • Computed the sample sizes, means, std. devs, and IQR across primary_use_case to compare semester GPA change and post-semester skill retention.

  • Created an OLS model that predicted skill_retention_score from the interaction between weekly_genai_hours and institutional_policy while controlling traditional_study_hours, perceived_ai_dependency, primary_use_case, and pre_semester_gpa.

Research Question 1

rq1_summary <- clean_df |>
  group_by(primary_use_case) |>
  summarise(
    n = n(),
    mean_ai_hrs = mean(weekly_genai_hours),
    mean_gpa_change = mean(gpa_change),
    sd_gpa_change = sd(gpa_change),
    mean_retention = mean(skill_retention_score),
    sd_retention = sd(skill_retention_score),
    .groups = "drop"
  ) |>
  arrange(desc(mean_retention))

top_use_case <- rq1_summary$primary_use_case[1]
top_retention <- round(rq1_summary$mean_retention[1], 2)
top_gpa_delta <- round(rq1_summary$mean_gpa_change[1], 3)

low_use_case <- tail(rq1_summary$primary_use_case, 1)
low_retention <- round(tail(rq1_summary$mean_retention, 1), 2)
low_gpa_delta <- round(tail(rq1_summary$mean_gpa_change, 1), 3)

rq1_summary |>
  kable(
    digits = 2,
    col.names = c("Primary Use Case", "Students (n)", "Mean AI Hrs/Wk",
                  "Mean GPA Change", "SD GPA Change", "Mean Retention", "SD Retention"),
    caption = "Semester GPA Change and Skill Retention by Primary Generative AI Use Case"
  )
Semester GPA Change and Skill Retention by Primary Generative AI Use Case
Primary Use Case Students (n) Mean AI Hrs/Wk Mean GPA Change SD GPA Change Mean Retention SD Retention
Debugging/Troubleshooting 12295 9.40 0.25 0.19 78.07 13.90
Ideation 10721 8.40 0.20 0.17 75.52 12.64
Copywriting/Drafting 12011 7.63 0.20 0.17 75.23 12.72
Summarizing Reading 8633 8.17 0.20 0.17 75.23 12.70
Direct Answer Generation 6340 8.46 0.13 0.23 73.72 14.30
ggplot(clean_df, aes(x = skill_retention_score,
                     y = reorder(primary_use_case, skill_retention_score, median))) +
  geom_boxplot(fill = "steelblue", alpha = 0.8, outlier.alpha = 0.1) +
  labs(
    title = "Skill Retention by Primary Generative AI Use Case",
    subtitle = "Boxes show the middle 50% of scores (IQR) and lines show medians (N = 50,000)",
    x = "Skill Retention Score (0–100)",
    y = NULL,
    caption = "Source: AI Usage & Student Academic Performance Dataset (Nabi, 2026)"
  ) +
  theme_minimal(base_size = 12)

Interpretation of Research Question 1: Comparing group means and interquartile ranges shows how students’ cognitive intent shapes the learning outcomes. Students who primarily use generative AI for Debugging/Troubleshooting achieve the highest skill retention where both the group mean and median are sitting around 78. Ideation, Summarizing Reading and Copywriting/Drafting cluster tightly in the middle with the group means and medians hovering around 75. Direct Answer Generation yields the lowest retention rate and its IQR is the lowest on the scale. It’s group mean is also below its median. Because of the upward shift of the middle 50% of students in Debugging/Troubleshooting compared to Direct Answer Generation it suggest that active problem-solving work ensures deeper skill retention and mastery than just obtaining an answer.

Research Question 2

# Fit multiple linear regression with policy interaction
retention_model <- lm(
  skill_retention_score ~ weekly_genai_hours * institutional_policy +
    traditional_study_hours + perceived_ai_dependency + pre_semester_gpa + primary_use_case,
  data = clean_df
)

model_r2 <- round(summary(retention_model)$r.squared, 3)
tidy_ret <- tidy(retention_model, conf.int = TRUE)

trad_est <- round(tidy_ret$estimate[tidy_ret$term == "traditional_study_hours"], 2)
ai_est <- round(tidy_ret$estimate[tidy_ret$term == "weekly_genai_hours"], 2)
dep_est <- round(tidy_ret$estimate[tidy_ret$term == "perceived_ai_dependency"], 2)

tidy_ret |>
  select(term, estimate, std.error, statistic, p.value) |>
  kable(
    digits = 3,
    col.names = c("Model Term", "Estimate (Slope)", "Std. Error", "t-Statistic", "p-Value"),
    caption = paste0("Multiple Linear Regression Predicting Skill Retention Score (R² = ", model_r2, ")")
  )
Multiple Linear Regression Predicting Skill Retention Score (R² = 0.057)
Model Term Estimate (Slope) Std. Error t-Statistic p-Value
(Intercept) 64.202 0.452 142.163 0.000
weekly_genai_hours -0.124 0.014 -8.693 0.000
institutional_policyAllowed With Citation -0.263 0.190 -1.384 0.167
institutional_policyStrict Ban 0.398 0.240 1.656 0.098
traditional_study_hours 0.343 0.011 30.242 0.000
perceived_ai_dependency -0.081 0.042 -1.907 0.056
pre_semester_gpa 2.765 0.120 22.950 0.000
primary_use_caseDebugging/Troubleshooting 3.174 0.166 19.123 0.000
primary_use_caseDirect Answer Generation -1.407 0.200 -7.022 0.000
primary_use_caseIdeation 0.439 0.171 2.557 0.011
primary_use_caseSummarizing Reading 0.062 0.182 0.339 0.735
weekly_genai_hours:institutional_policyAllowed With Citation 0.007 0.016 0.458 0.647
weekly_genai_hours:institutional_policyStrict Ban -0.184 0.020 -8.985 0.000
set.seed(586)
sample_df <- clean_df |> slice_sample(n = 3000)

ggplot(clean_df, aes(x = weekly_genai_hours, y = skill_retention_score)) +
  geom_point(data = sample_df, alpha = 0.15, size = 1, color = "gray40") +
  geom_smooth(method = "lm", color = "steelblue") +
  facet_wrap(~ institutional_policy) +
  labs(
    title = "Weekly GenAI Usage vs. Skill Retention by Institutional Policy",
    subtitle = "Trend lines fitted on all 50,000 students (points show a random sample of 3,000)",
    x = "Weekly Generative AI Usage (Hours)",
    y = "Skill Retention Score (0–100)",
    caption = "Source: AI Usage & Student Academic Performance Dataset (Nabi, 2026)"
  ) +
  theme_minimal(base_size = 12)
`geom_smooth()` using formula = 'y ~ x'

Interpretation of Research Question 2: The plots indicate that institutional AI policies aid in moderating the negative relationship between weekly generative AI usage and post semester skill retention. When we look at the three policy environments, student swho use generative AI the least (~0 hrs/week) start at nearly identical baseline retention scores of 77-78. However, as the weekly usage increases toward 40 hrs, the slope tends to deviate depending on the policy of the institution. Both Actively Encouraged and Allowed With Citation policies have a decline in skill retention. For a Strict Ban, the downward slope is about 2x as steep. This goes to show that even when a “strict ban” is in place, students are still using generative AI tools. These trends go to show that transparent policies such as Actively Encouraged or Allowed With Citation could help with skill retention by providing a form of AI usage that is being applied respectfully and responsibly.

4. Communication

Key Findings and Insights

From research question 1, we learn that students who use generative AI as a tool primarily for Debugging/Troubleshooting achieve the highest post semester skill retention, highest mean GPA change, and outperform peers who rely on Direct Answer Generation.

From research question 2, we can see that prohibitions of AI usage from institutions do not prevent student AI usage. In comparison, the structured policies such as Allowed With Citation and Actively Encourages

Limitations, Considerations and References

Dataset Limitations

  • The dataset does not include the specific universities from the sample.

  • The dataset did not have any missing, NA, or duplicate values which indicate that the dataset likely could have been pre-filtered which may indicate that some observations have been excluded which could have heavily influenced our findings.

  • Some variables such as Weekly_GenAI_Hours and Perceived_AI_Dependency rely on student’s self reported evaluation rather than a standard scale. As such, bias could play a large role in the results for these variables

References

  • Krumm, A., Means, B., & Bienkowski, M. (2018). Learning analytics goes to school: A collaborative approach to improving education. Routledge.

  • Nabi, R. G. (2026). AI Usage and Student Academic Performance Analysis [Data set]. Kaggle. https://www.kaggle.com/datasets/ranaghulamnabi/ai-usage-and-student-academic-performance-analysis