Written and maintained by CASRAI Editorial Board
Published
On this page
LearnSphere is an open-access cyberinfrastructure and learning data repository funded by the National Science Foundation to support reproducible research in the learning sciences. Developed by Carnegie Mellon University, MIT, Stanford University, and the University of Memphis, LearnSphere bridges data silos across educational research communities by integrating transaction repositories like PSLC DataShop, online course platforms like MOOCdb, and collaborative discussion archives like DiscourseDB. At the core of the system is Tigris, a web-based workflow authoring tool that allows researchers to link datasets, execute statistical learning models like the Additive Factors Model (AFM), and evaluate student learning curves. By establishing standardized tabular formats and preserving institutional data sovereignty, LearnSphere aligns with RDA FAIR Data Maturity Model standards.
Definition in One Paragraph
LearnSphere is a distributed data infrastructure and analytical platform that enables researchers, educators, and learning engineers to store, share, and analyze educational interaction data. Supported under NSF Award #1443068, LearnSphere links disparate learning analytics resources through Tigris, an interactive workflow engine. The platform standardizes diverse learner records—including intelligent tutoring system transaction logs, assessment attempts, and student discourse—into structured formats like the Student-Step matrix. Researchers can fit item-level cognitive growth models, compare Knowledge Component structures, and export shareable, executable analytical pipelines without requiring local software installation.
Formula with Every Symbol Explained
Workflows within LearnSphere evaluate cognitive skill acquisition over time using statistical growth models. The foundational model implemented in DataShop and Tigris is the Additive Factors Model (AFM), a logistic regression framework based on item response theory. The AFM predicts the probability of student i correctly answering problem step j on the first attempt:
ln(p_ij / (1 – p_ij)) = θ_i + Σ_k (β_k × q_jk) + Σ_k (γ_k × q_jk × T_ik)
Applying the standard logistic transformation converts log-odds into predicted response probability:
p_ij = 1 / (1 + exp(-(θ_i + Σ_k (β_k × q_jk) + Σ_k (γ_k × q_jk × T_ik))))
The mathematical symbols represent the following parameters:
- p_ij: Predicted probability that student i correctly solves step j on the first attempt without errors or hints.
- ln(p_ij / (1 – p_ij)): Log-odds (logit) of first-attempt success, linking bounded probabilities (0, 1) to a linear predictor space as in standard logistic regression models.
- θ_i (theta): Student proficiency parameter representing individual baseline capability or prior academic preparation.
- k: Index denoting a specific Knowledge Component (KC), defined as a distinct cognitive skill or mental schema.
- β_k (beta): Baseline easiness parameter for KC k; higher values indicate easier initial tasks, while negative values denote greater initial difficulty.
- q_jk: Indicator entry in the Q-matrix, equal to 1 if step j requires KC k, and 0 otherwise.
- γ_k (gamma): Learning rate (slope) parameter for KC k, representing the log-odds increase per practice opportunity.
- T_ik: Count of prior practice opportunities student i has completed on KC k before encountering step j.
Worked Example with Real Numbers and the Arithmetic Shown
Consider a student working on an algebra module in an intelligent tutoring system with parameter values estimated from classroom log data:
- Student proficiency: θ_i = 0.50
- KC baseline easiness: β_k = -0.20 (moderate initial task difficulty)
- KC learning rate: γ_k = 0.10 (steady skill growth)
- Practice opportunity count: T_ik = 3 prior encounters
- Single-skill mapping: q_jk = 1
Step 1: Compute the practice opportunity product
γ_k × q_jk × T_ik = 0.10 × 1 × 3 = 0.30
Step 2: Calculate total log-odds (logit L)
L = 0.50 + (-0.20 × 1) + 0.30 = 0.50 – 0.20 + 0.30 = 0.60
Step 3: Convert logit to odds
Odds = exp(0.60) ≈ 1.8221
Step 4: Compute predicted success probability (p_ij)
p_ij = 1 / (1 + exp(-0.60))
exp(-0.60) ≈ 0.548812
p_ij = 1 / (1 + 0.548812) = 1 / 1.548812 ≈ 0.6457 (or 64.57%)
After three practice opportunities, the student has a 64.57% probability of first-attempt success, up from 57.44% at opportunity zero (L = 0.30, p = 1 / (1 + exp(-0.30)) ≈ 0.5744), reflecting a net gain of 7.13 percentage points.
Interpretation (What the Result Means, With a Small Table of Reading Guidance)
Interpreting AFM output in LearnSphere requires examining both individual parameter estimates and model-wide fit statistics. While linear and multiple regression frameworks emphasize explained variance, educational logistic growth models assess skill learning slopes (γ_k) and penalized information criteria (AIC and BIC) across competing cognitive models.
| Metric | Typical Range | Meaning | Guidance |
|---|---|---|---|
| Learning Rate (γ_k) | γ > 0.05 | Systematic error reduction with practice. | Instruction is effective; maintain practice sequence. |
| Flat Learning Rate | -0.01 ≤ γ ≤ 0.01 | No measurable improvement over trials. | Review hint structure or instructional explanations. |
| Negative Slope | γ < -0.02 | Error rates increase as practice progresses. | Investigate task ambiguity or cognitive fatigue. |
| Baseline Easiness (β_k) | β < -1.50 | High initial difficulty (<20% initial success). | Introduce preliminary scaffolding or worked examples. |
| AIC / BIC | Lower is better | Penalized likelihood balancing fit and complexity. | ΔAIC > 10 provides strong evidence for the better KC model. |
| RMSE | 0.00 to 1.00 | Cross-validated prediction error on binary steps. | Values below 0.35 indicate good model calibration. |
Assumptions and Common Mistakes
Evaluating learning curves via LearnSphere requires attention to core methodological assumptions and log data structures.
Core Assumptions
- Monotonic Acquisition: Learning is assumed to proceed monotonically, meaning practice steadily reinforces skill mastery without immediate forgetting during the task session.
- Additive Skill Independence: When multiple Knowledge Components apply to one problem step, their contributions add linearly on the logit scale without complex interaction terms.
- Stable Q-Matrix Mapping: The cognitive skill tags assigned to assessment steps remain consistent throughout the training sequence.
Common Mistakes
- Over-Aggregated Skill Models: Grouping distinct operations into a broad skill category masks learning bottlenecks and yields distorted, flat learning curves.
- Confounding Attempts with Opportunities: Counting repeated submissions within a single problem step as separate practice opportunities distorts the opportunity counter (T_ik).
- Survivor Bias in Voluntary Environments: Attrition in self-paced courses can artificially inflate success rates at high opportunity counts, making difficult skills appear deceptively easy.
- Overreliance on Isolated P-Values: Rejecting small learning slopes based solely on p-values greater than 0.05 without examining sample size can overlook genuine learning gains. Researchers should evaluate statistical power with verified p-value calculators and tests.
How to Report It (APA Example)
Empirical manuscripts reporting LearnSphere analyses should adhere to American Psychological Association (APA 7th edition) quantitative guidelines by detailing sample size, model specifications, parameter values, and information criteria.
APA Style Reporting Template:
An Additive Factors Model (AFM) logistic regression was executed via LearnSphere Tigris (Workflow ID 1420) to analyze cognitive skill mastery across N = 482 students completing 18,340 problem steps. The fine-grained Knowledge Component model exhibited superior fit relative to the single-skill baseline (AIC = 12,410.8 vs. 13,850.2; BIC = 12,624.5 vs. 13,912.1; 10-fold cross-validated RMSE = .324). The baseline easiness parameter for the target skill was negative and statistically significant (β = -0.38, SE = 0.07, z = -5.43, p < .001, odds ratio [OR] = 0.68, 95% CI [0.59, 0.78]), confirming initial task difficulty. The learning rate was positive and statistically significant (γ = 0.09, SE = 0.02, z = 4.50, p < .001, OR = 1.09, 95% CI [1.05, 1.14]), demonstrating that each practice opportunity increased the odds of first-attempt success by 9.4%.
How to Calculate It in Excel, R or Python
Researchers can evaluate AFM model predictions across standard computational tools using the snippets below.
1. Excel Formula
Organize parameters in worksheet cells:
- Cell A2 (Proficiency θ_i):
0.50 - Cell B2 (KC Easiness β_k):
-0.20 - Cell C2 (Learning Rate γ_k):
0.10 - Cell D2 (Opportunity T_ik):
3 - Cell E2 (Log-odds):
=A2 + B2 + (C2 * D2) - Cell F2 (Probability):
=1 / (1 + EXP(-E2))
Cell F2 yields 0.6457 (64.57%).
2. R Implementation (lme4)
# Fit Additive Factors Model using lme4
library(lme4)
# student_data requires: FirstAttempt (0/1), StudentId, KC, Opportunity
afm_model <- glmer(
FirstAttempt ~ (1 | StudentId) + KC + KC:Opportunity,
data = student_data,
family = binomial(link = "logit"),
control = glmerControl(optimizer = "bobyqa")
)
summary(afm_model)
cat("AIC:", AIC(afm_model), "BIC:", BIC(afm_model), "n")
3. Python Implementation
import numpy as np
def afm_predict(theta: float, beta: float, gamma: float, opp: int) -> float:
# Predict probability of success under AFM
logit = theta + beta + (gamma * opp)
return float(1.0 / (1.0 + np.exp(-logit)))
p = afm_predict(theta=0.50, beta=-0.20, gamma=0.10, opp=3)
print(f"Predicted Probability: {p:.4f}") # 0.6457
FAQ
What is the distinction between LearnSphere and PSLC DataShop?
PSLC DataShop is a specialized repository centered on cognitive tutor interaction logs. LearnSphere is an NSF-funded cyberinfrastructure that incorporates DataShop alongside other platforms (MOOCdb, DiscourseDB) and adds Tigris, a workflow tool for sharing and replicating analytical pipelines.
How does the Additive Factors Model compare to Bayesian Knowledge Tracing?
AFM is a logistic regression model that treats skill acquisition as a continuous increase in performance odds across practice opportunities. Bayesian Knowledge Tracing (BKT) uses a hidden Markov model that treats learning as a binary state transition from unlearned to learned, incorporating slip and guess parameters.
What primary data formats does LearnSphere support?
LearnSphere supports DataShop Student-Step exports, transaction tab-delimited files, DiscourseDB tables, and MOOCdb schemas, in addition to standard delimited text files ingested by custom Tigris components.
How does LearnSphere maintain student privacy under FERPA?
LearnSphere implements a distributed architecture where institutional contributors store raw student records locally and share de-identified, hashed datasets. The central portal hosts analytical workflows and catalog metadata without storing Personally Identifiable Information.
Can external researchers add custom analytical components to Tigris?
Yes. Tigris is modular and open source. Developers can create custom analytical components in R, Python, or Java and register them for community use within the LearnSphere workflow catalog.
Sources
- Stamper, J., Pavlik, P. I. Jr., Moore, S., Koedinger, K., & Rosé, C. P. (2024). LearnSphere: A Learning Data and Analytics Cyberinfrastructure. Journal of Educational Data Mining, 16(1), 141–163. https://dev.stamper.org/publications/JEDM2024_Stamper_et_al.pdf (Accessed 2026-11-12).
- National Science Foundation. (2014). Award #1443068: CIF21 DIBBs: Building a Scalable Infrastructure for Data-Driven Discovery and Innovation in Education. Awarded to Carnegie Mellon University; Principal Investigator: Kenneth R. Koedinger; Co-PIs: Carolyn P. Rosé, John Stamper. https://www.nsf.gov/awardsearch/showAward?AWD_ID=1443068 (Accessed 2026-11-12).
- Carnegie Mellon University. (2026). PSLC DataShop: Open Data Repository for Learning Science. LearnLab / Human-Computer Interaction Institute. https://pslcdatashop.web.cmu.edu/ (Accessed 2026-11-12).
- Stamper, J., Carvalho, P., Moore, S., & Koedinger, K. R. (2019). Tigris: An Online Workflow Tool for Sharing Educational Data and Analytic Methods. In Companion Proceedings of the 9th International Conference on Learning Analytics & Knowledge (LAK ’19), p. 183. http://dev.stamper.org/publications/LAK19_companion_Stamper_et_al.pdf (Accessed 2026-11-12).







