Overview
Sunschool’s concept tracking system tags every quiz question with specific concepts (e.g., “addition”, “fractions”, “plants”) and tracks performance on each concept individually. This enables precise identification of struggling areas and adaptive content recommendations.How It Works
Concept Extraction
Concepts are automatically extracted from question text and options:Supported Concept Categories
- Mathematics
- Science
- Language Arts
- General Skills
- addition
- subtraction
- multiplication
- division
- fractions
- counting
The system uses simple regex pattern matching. As the platform grows, this can be enhanced with NLP (Natural Language Processing) for more sophisticated concept detection.
Storing Quiz Answers
Each answer is stored with full metadata:Storing All Answers from a Quiz
Question Hashing
Questions are hashed to detect duplicates and track repeated attempts:Concept Performance Analytics
The system calculates performance statistics per concept:Querying by Concept
Retrieve all answers for a specific concept:This uses PostgreSQL’s
ANY(array) operator to search within the concept_tags array column.Integration with Mastery System
Concept tracking feeds directly into the mastery system (see Mastery System):Identifying Struggling Concepts
The system identifies which concepts need reinforcement:Reinforcement Criteria
A concept is marked as needing reinforcement when:
- Mastery level < 70%
- Has been tested at least once
Visualization for Parents
The concept tracking data powers several parent-facing visualizations:Concept Heatmap
Visual grid showing mastery levels across all concepts
Struggling Areas
List of concepts below 70% with recommended practice
Concept Progress
Timeline showing how mastery improves over time
Subject Breakdown
Concepts organized by subject with accuracy percentages
Example: Tracking “Fractions” Concept
Database Schema
quiz_answers Table
concept_mastery Table
API Usage Examples
Store Quiz Answers
Get Concept Performance
Get Struggling Concepts
Related Features
Mastery System
How mastery levels are calculated and decay
Adaptive Learning
Using concept data for personalized recommendations
Reports
Visual concept performance analytics