Building an AI-Powered Study Dashboard for Graduate Entrance Exam Prep: A Technical Practice

    This article walks through building an AI-assisted study management dashboard for long-cycle exam preparation. It breaks down three common failure points—progress tracking, feedback, and motivation—and proposes a four-layer architecture (data, capability, API, and interaction). It covers the core data models, weighted progress calculation, check-in streak derivation, an auditable points system with idempotent settlement, and how to write effective prompts for AI coding tools. A pre-launch checklist is included to help developers ship a reliable, maintainable system.

    1. Background: Three Breakpoints in Exam Prep Management

    Preparing for graduate entrance exams is typically a long cycle (usually 6–12 months), with fragmented tasks (knowledge points, past papers, memorization, and mock exams interleaved) and sparse feedback (only a mock exam can validate progress at a stage level). In this scenario, relying solely on a paper planner or a notes app often leads to three breakpoints:

    1. Progress breakpoint: You write a plan, but you don’t know how much is done overall or whether the remaining time is enough.
    2. Feedback breakpoint: There is no quantifiable signal telling you whether you are closer to the goal today than yesterday.
    3. Motivation breakpoint: A lack of positive reinforcement over the long term makes the behavior hard to sustain.

    Using AI to reshape student life is not about letting a model study for you. It is about handing “study management”—a highly engineering-oriented task—to a structured system. The value of AI coding tools (such as the AI programming capabilities from Baidu AI Cloud) here is turning requirement descriptions directly into runnable data models, APIs, and pages, so individual developers can focus on rule design rather than boilerplate code.

    2. Overall Design: A Four-Layer Structure

    A usable study dashboard should be split into four layers, decoupled through clear data contracts:

    • Data layer: study tasks, check-in records, points ledger, reward catalog.
    • Capability layer: progress aggregation, streak calculation, points settlement, redemption validation.
    • API layer: read/write interfaces for pages and scheduled jobs.
    • Interaction layer: overview dashboard, task details, points store.

    The direct benefit of this layering: rule changes (for example, adjusting point weights) won’t affect the pages, and page redesigns won’t break the statistical definitions.

    3. Data Model: Define the Semantics First

    The key to model design is not having many fields, but having a single, unambiguous meaning for each. At minimum, include the following entities:

    1. StudyTask (id, title, subject, target_count, done_count, due_date, status)
    2. CheckIn (id, task_id, user_id, checkin_date, duration_min, note)
    3. PointLedger (id, user_id, delta, reason, ref_id, created_at) -- append-only, never modified
    4. RewardItem (id, name, cost, stock, active)
    5. RedeemOrder (id, user_id, reward_id, cost, status, created_at)

    Two constraints you must stick to:

    • Use a ledger table for points, not a balance field. The balance is an aggregation of the ledger. Directly modifying the balance almost inevitably causes errors during backfills, rollbacks, and reconciliation.
    • Enforce a unique constraint on the check-in date (user_id + checkin_date) to eliminate duplicate check-ins at the database level and prevent front-end validation from being bypassed.

    4. Progress Visualization: From “Feeling” to a Percentage

    Progress cannot be measured only by “completed tasks / total tasks,” because different tasks carry very different weights. A more rigorous approach is weighted aggregation:

    1. def overall_progress(tasks):
    2. total = sum(t.weight * t.target_count for t in tasks)
    3. done = sum(t.weight * t.done_count for t in tasks)
    4. return round(done / total * 100, 1) if total else 0.0

    At the presentation layer, show three perspectives at once to avoid a single metric misleading decisions:

    • Overall progress: a weighted percentage answering “how far along are we.”
    • Per-subject progress: pinpoints weak subjects, answering “what is holding us back.”
    • Time progress comparison: days elapsed / total days. When the progress percentage clearly lags behind the time percentage, it is a strong signal that the plan needs adjustment.

    5. Check-Ins and Learning Activity: Continuity and Rhythm

    The value of check-in records lies in forming a continuous chain of evidence over time. From the CheckIn table you can derive several stable metrics:

    1. -- Check-in streak (computed over the date sequence; a gap means a break)
    2. SELECT user_id, checkin_date,
    3. DATE_SUB(checkin_date, INTERVAL ROW_NUMBER() OVER
    4. (PARTITION BY user_id ORDER BY checkin_date) DAY) AS grp
    5. FROM CheckIn;
    6. -- The number of rows sharing the same grp is the length of one continuous streak

    Recent activity is generated as a timeline ordered by created_at descending. Suggested fields include the action type (task completed / check-in / redemption), the object name, and the time. The point of the activity feed is to turn “abstract persistence” into “visible history”—the element most missing from pure record-keeping tools.

    6. Points and Incentives: Rule Design Is the Core

    The points module easily becomes an “inflation toy,” so you must set constraints before writing code. Actionable design principles:

    1. Have a cap: set a daily ceiling on points earned to prevent task farming.
    2. Have decay: repeatedly completing the same low-value task yields diminishing marginal points.
    3. Have a cost: redemption must carry a real price (for example, one redemption requires a check-in streak of 7+ days).
    4. Be auditable: any points change must be traceable to a source record.

    The settlement logic should be idempotent to avoid duplicate grants when a scheduled job triggers repeatedly:

    1. def settle_points(user_id, ref_id, base, cap=50):
    2. key = f"{user_id}:{ref_id}"
    3. if already_settled(key): # idempotency check
    4. return 0
    5. gain = min(base, cap)
    6. append_ledger(user_id, gain, reason="task_done", ref_id=ref_id)
    7. return gain

    Keep the reward catalog separate from redemption orders: the catalog only describes “what can be exchanged,” while the order handles “what was exchanged, how much was deducted, and its status.” Stock deduction must happen within the same transaction to prevent over-redemption.

    7. Implementing with AI Coding Tools: Turn Requirements into Specs

    When using AI coding capabilities, the quality of the prompt directly determines the quality of the output. An effective description should contain four elements: entities, constraints, definitions, and exceptions. Example:

    1. Please implement a study progress aggregation service:
    2. Entities: StudyTask(weight, target_count, done_count)
    3. Definition: overall progress = Σ(weight*done)/Σ(weight*target), rounded to one decimal
    4. Constraints: done_count must not exceed target_count
    5. Exceptions: return 0 when there are no tasks; do not throw an error
    6. Output: function + unit tests (including boundary cases)

    Writing “definitions” and “exceptions” into the requirements significantly reduces rework—most bugs are not logic errors but inconsistent definitions.

    8. Pre-Launch Checklist

    • Is the progress definition fully consistent with what the page displays (including decimal places and rounding rules)?
    • Can the points ledger fully recompute the current balance?
    • Are duplicate check-ins and duplicate settlements blocked by the database or an idempotency key?
    • Does redemption have transaction and stock validation?
    • Is data export provided to avoid locking data into a single system?

    9. Conclusion

    The real barrier to a study dashboard is not the technology, but whether the “measurement definitions” and “incentive rules” can withstand long-term scrutiny. Make progress an explainable weighted metric, make check-ins a continuous chain of evidence, and make points an auditable, closed-loop incentive. Then use AI coding tools to implement and iterate quickly. A prep process once sustained by willpower becomes a system that runs sustainably. This is also a pragmatic way AI reshapes student life: not replacing effort, but making effort visible, measurable, and continuous.