Structured self-discipline intervention method and system for education

By building a structured self-discipline intervention system on the learning terminal, the problem of distraction during the learning process was solved, the learning process was stabilized and controlled, and learning efficiency was improved.

CN121788090APending Publication Date: 2026-04-03王梓轩
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing technologies lack structured self-discipline intervention strategies during mobile terminal learning, leading to distraction during learning, unstable execution of intervention rules, difficulty in adapting to changes in learning status, and a lack of unified version management and script consistency verification.

Method used

The system generates learning status data through the data acquisition module, organizes trigger conditions and intervention actions through the intervention script management module, generates executable control strategies through the script compilation and consistency verification module, executes intervention actions through the terminal control module, and provides feedback and updates through the completion verification module and log recording module, thus forming a closed-loop intervention system.

Benefits of technology

It has enabled the structured, traceable, and executable nature of intervention rules on the learning terminal, reduced intervention anomalies, improved the matching degree and stability of intervention strategies, and ensured the continuity and effectiveness of the learning process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121788090A_ABST
    Figure CN121788090A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a structured self-discipline intervention method and system for education. Comprising a data acquisition module, an intervention script management module, an intervention engine, a script compiling consistency verification module, a terminal control module, a verification completion module, a log recording module and an effect evaluation script updating module. The data acquisition module performs time marking on the learning behavior data and the terminal use data to generate learning state data; the intervention script management module stores a structured self-discipline intervention script with a version identifier, and the script comprises a stage node, a trigger condition of the stage node, an intervention action set and a release condition; the intervention engine determines a current stage and generates an intervention instruction, and the terminal control module executes a prompt action and limits a target application or a target function; the verification completion module judges a release condition and outputs a release instruction; and the effect evaluation script updating module updates a script version based on the log and issues the script version.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more specifically to a structured self-discipline intervention method and system for education. Background Technology

[0002] With the widespread adoption of mobile devices and online education, students rely more on learning devices and applications for learning. However, the same device often carries functions such as social networking, entertainment, and information browsing in parallel, which can easily lead to frequent switching and distraction during the learning process. The initiation and sustained engagement of tasks are also unstable. Schools or parents need to intervene appropriately and keep traceable records of the learning process.

[0003] Existing technologies often rely on time quotas, application lists, or screen lock restrictions, supplemented by push notifications and statistical reports. These solutions typically execute according to fixed rules, lacking strategy scripts organized by learning task stages. Triggering conditions, intervention actions, and deactivation conditions lack a unified structure and version management, making it difficult to trace and roll back strategies after adjustments. Furthermore, the lack of script consistency verification, terminal-executable strategy compilation, and closed-loop evaluation of completed verification data makes it prone to overly strong or weak interventions, and difficult to stably iterate in response to changes in learning status. Therefore, we propose a structured self-discipline intervention method and system for education. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a structured self-discipline intervention system for education, thereby resolving the technical problems existing in the prior art.

[0005] The above-mentioned technical objective of the present invention is achieved through the following technical solution:

[0006] Structured self-regulatory intervention systems for education include:

[0007] The data acquisition module is used to collect user learning behavior data and terminal usage data on the learning terminal, and to time-stamp the learning behavior data and terminal usage data to generate learning status data.

[0008] The intervention script management module is used to store structured self-discipline intervention scripts and set version identifiers for the structured self-discipline intervention scripts; the structured self-discipline intervention scripts include multiple stage nodes, as well as trigger conditions, intervention action sets and release conditions corresponding to each stage node;

[0009] An intervention engine is used to receive the learning state data, determine the current stage node based on the triggering conditions of the structured self-discipline intervention script, and then generate intervention instructions according to the set of intervention actions.

[0010] The script compilation and consistency verification module is used to perform consistency verification on the structured self-discipline intervention script and compile the structured self-discipline intervention script into a set of control strategies that can be executed by the learning terminal.

[0011] A terminal control module, deployed on the learning terminal, is used to receive the control strategy set and the intervention instructions, and to execute intervention actions according to the control strategy set and the intervention instructions; the intervention actions include prompt actions and control actions, and the control actions are used to restrict the target applications and target functions of the learning terminal;

[0012] The verification module is used to collect verification data during the intervention action performed by the terminal control module, and to determine the verification data based on the release condition to output a completion determination result; when the completion determination result indicates that the release condition is met, the verification module outputs a release command to the terminal control module so that the terminal control module releases the control action corresponding to the current stage node.

[0013] The log recording module is used to record triggering events related to the current stage node, the intervention instructions, the completion determination results, and the intervention execution results;

[0014] The effect evaluation and script update module is used to determine self-discipline indicators based on the information recorded by the log recording module, update the structured self-discipline intervention script according to the self-discipline indicators to generate a new version identifier, write the updated structured self-discipline intervention script back to the intervention script management module, and send it to the script compilation and consistency verification module to generate an updated control strategy set.

[0015] Preferably, the data acquisition module includes a learning behavior acquisition unit, a terminal usage acquisition unit, and a time stamp unit;

[0016] The learning behavior acquisition unit is connected to the learning application interaction interface of the learning terminal, and acquires learning task start events, learning task end events, learning content switching events, and answer submission events, and generates learning behavior records; the learning behavior records include task identifier fields, content identifier fields, event type fields, and time fields;

[0017] The terminal uses a data acquisition unit to connect to the operating system event interface of the learning terminal, acquires the foreground application identifier, screen on status, and unlock status, and generates a terminal usage record; the terminal usage record includes an application identifier field, a status field, and a time field;

[0018] The time identification unit obtains the system clock time of the learning terminal and fills the system clock time into the time field of the learning behavior record and the time field of the terminal usage record.

[0019] The learning status data is formed by merging the learning behavior records written in the time field and the terminal usage records, and the learning behavior records and the terminal usage records are sorted according to the time field.

[0020] Preferably, the intervention script management module includes a script storage unit, a version management unit, and a script parsing unit;

[0021] The structured self-discipline intervention script is stored in the form of script entries, which include a script identifier field, a version identifier field, and multiple stage node entries.

[0022] Each stage node entry includes a stage identifier field, a stage priority field, a trigger condition entry, an intervention action set entry, and a release condition entry;

[0023] The trigger condition entry consists of at least one trigger rule, and each trigger rule includes a status item identifier field, a comparison operator field, and a threshold field;

[0024] The set of intervention actions includes at least one action record. Each action record includes an action type field and an action parameter field. The action type field is either a prompt action or a control action. The action parameter field includes a target object identifier field, a duration field, and a prompt content field.

[0025] The release condition entry consists of at least one release rule, and each release rule includes a verification item identifier field, a comparison operator field, and a judgment value field;

[0026] When the structured self-regulatory intervention script is updated, the version management unit writes a new version identifier field into the updated script entries and retains the script entries and their version identifier fields from before the update.

[0027] Preferably, the intervention engine includes a rule matching unit, a stage determination unit, and an instruction generation unit;

[0028] The rule matching unit parses the learning state data and extracts the state item values ​​corresponding to the trigger condition entries;

[0029] The rule matching unit compares the state item value with the threshold field according to the comparison operator field to obtain the matching result of each triggering rule;

[0030] The stage determination unit determines the current stage node based on the matching result. The stage determination includes: when all triggering rules in the same stage node entry match, the stage node entry is determined as the current stage node; when multiple stage node entries simultaneously meet the triggering rule matching, the current stage node is determined according to the stage priority field from largest to smallest.

[0031] The instruction generation unit reads the set of intervention actions corresponding to the current stage node entry, and generates at least one intervention instruction based on the action type field and the action parameter field. The intervention instruction includes an instruction type field, a target object identifier field, an execution duration field, and a prompt content field. The instruction type field is a prompt action or a control action.

[0032] Preferably, the script compilation and consistency verification module includes a script reading unit, a consistency verification unit, and a compilation and generation unit;

[0033] The script reading unit reads the structured self-discipline intervention script corresponding to the version identifier from the intervention script management module, and extracts the stage node entries, trigger condition entries, intervention action set entries, and release condition entries from the structured self-discipline intervention script;

[0034] The consistency verification unit performs a consistency verification on the structured self-discipline intervention script, and the consistency verification includes:

[0035] For each stage node entry, verify that the stage node entry simultaneously contains a trigger condition entry, an intervention action set entry, and a release condition entry;

[0036] For each triggering rule, the comparison operator field is verified to be greater than, greater than or equal to, equal to, less than or equal to, or less than, and the threshold field is a numerical field;

[0037] For each action record, verify that the action type field is either a prompt action or a control action, and that the action parameter field simultaneously includes the target object identifier field, the duration field, and the prompt content field; the duration field is a positive value field; when the action type field is a prompt action, the prompt content field is a non-empty string.

[0038] For each action record in the same stage node entry, verify that if there are two or more action records with the same target object identifier field, their action type field is consistent.

[0039] When the consistency check passes, the compilation and generation unit compiles the structured self-discipline intervention script into a management and control policy set, which includes one or more policy records.

[0040] Each policy record is generated from an action record whose action type field is a control action, and each policy record includes a version identifier field, a stage identifier field, a target object identifier field, and a restriction duration field, wherein the restriction duration field is determined by the duration field.

[0041] Preferably, the terminal control module includes a policy receiving unit, an instruction receiving unit, a policy execution unit, and a prompt execution unit;

[0042] The policy receiving unit is used to receive the control policy set and write the policy records in the control policy set into the policy table; the policy table includes a version identifier field, a stage identifier field, a target object identifier field, a limit duration field, and an effective status field;

[0043] The instruction receiving unit is used to receive the intervention instruction and parse the instruction type field, target object identifier field, execution duration field, and prompt content field in the intervention instruction;

[0044] The policy execution unit is used to read the policy record in the policy table that matches the target object identifier field and whose effective status field is effective when the instruction type field is a control action, and to perform restrictions on the target application or target function corresponding to the target object identifier field within the time period corresponding to the restriction duration field.

[0045] The prompt execution unit is used to output the prompt content corresponding to the prompt content field of the intervention instruction within the duration corresponding to the execution duration field when the instruction type field is a prompt action;

[0046] When the policy execution unit imposes restrictions on the target application, it intercepts the launch operation of the target application and, after interception, calls the prompt execution unit to output the prompt content corresponding to the prompt content field of the intervention instruction.

[0047] Preferably, the verification completion module includes a verification data acquisition unit, a condition parsing unit, a rule determination unit, and a release instruction output unit;

[0048] The verification data acquisition unit is used to collect verification data during the intervention action performed by the terminal control module. The verification data includes learning behavior records and execution records generated by the terminal control module. The learning behavior records include an event type field, a task identifier field, and a time field, and further include a submission score field when the event type field is a question submission event. The execution records generated by the terminal control module include a target object identifier field, an execution status field, an execution start time field, and an execution end time field.

[0049] The condition parsing unit is used to read the release condition entries corresponding to the current stage node and extract at least one release rule from the release condition entries;

[0050] The rule determination unit is used to determine the verification item value from the verification data according to the verification item identifier field for each of the removal rules, and compare the verification item value with the determination value field according to the comparison operator field to obtain the determination result of the removal rule; the comparison operator field is greater than, greater than or equal to, equal to, less than or equal to, or less than.

[0051] The rule determination unit is further configured to output the completion determination result as satisfying the release condition when all the determination results of the release rules in the release condition entry are true, and to output the completion determination result as not satisfying the release condition when at least one release rule is false.

[0052] The release instruction output unit is used to generate a release instruction and send it to the terminal control module when the completion judgment result is that the release condition is met. The release instruction includes a stage identifier field and a target object identifier field. The terminal control module releases the control action corresponding to the current stage node based on the stage identifier field and the target object identifier field.

[0053] Preferably, the log recording module includes a log generation unit, a log storage unit, and a log indexing unit;

[0054] The log generation unit is used to generate log records for the current stage node. The log records include a log identifier field, a user identifier field, a stage identifier field, a trigger event field, an intervention instruction field, a completion judgment result field, and an execution result field.

[0055] The trigger event field includes a trigger time field, a trigger status item identifier field, and a trigger status item value field;

[0056] The intervention instruction field includes an instruction type field, a target object identifier field, an execution duration field, and a prompt content field;

[0057] The completion judgment result field includes a judgment time field and a judgment conclusion field;

[0058] The execution result fields include an execution start time field, an execution end time field, and an execution status field;

[0059] The execution status field is either in progress, execution completed, or released.

[0060] The log storage unit is used to write the log records into the log table;

[0061] The log indexing unit is used to create an index for the log table. The index includes a user identifier field, a stage identifier field, and a trigger time field.

[0062] Preferably, the effect evaluation and script update module includes an indicator calculation unit, a parameter update unit, a version generation unit, and a distribution unit;

[0063] The indicator calculation unit is used to extract the trigger event field, the completion judgment result field, and the execution result field from the log records recorded by the log recording module, and to determine the evaluation time window based on the trigger time field and the judgment time field;

[0064] The indicator calculation unit is further used to calculate self-discipline indicators within the evaluation time window. The self-discipline indicators include at least the task on-time completion rate, task start delay, and number of control releases. The task on-time completion rate is the ratio of the number of log records in the completion judgment result field whose judgment conclusion field meets the release condition to the total number of log records within the evaluation time window. The task start delay is the time difference between the trigger time field and the execution start time field. The number of control releases is the number of log records whose execution status field is released.

[0065] The parameter update unit is used to update at least one threshold field or at least one duration field in the structured self-discipline intervention script according to the self-discipline index, so as to obtain the updated structured self-discipline intervention script.

[0066] The version generation unit is used to write a new version identifier field for the updated structured self-discipline intervention script;

[0067] The distribution unit is used to write back the updated structured self-discipline intervention script to the intervention script management module, and send the updated structured self-discipline intervention script to the script compilation and consistency verification module to generate an updated control policy set corresponding to the new version identifier field and distribute it to the terminal control module.

[0068] A structured self-discipline intervention method for education includes the following steps:

[0069] S1. Collect user learning behavior data and terminal usage data on the learning terminal, and time-stamp the learning behavior data and terminal usage data to generate learning status data;

[0070] S2. Read the structured self-discipline intervention script with version identifier. The structured self-discipline intervention script includes multiple stage nodes, as well as the triggering conditions, intervention action set and release conditions corresponding to each stage node.

[0071] S3. Perform consistency verification on the structured self-discipline intervention script, and compile the structured self-discipline intervention script that passes the consistency verification into a set of control strategies that can be executed by the learning terminal;

[0072] S4. Determine the current stage node based on the learning state data and the triggering conditions of the structured self-discipline intervention script, and generate intervention instructions according to the set of intervention actions corresponding to the current stage node;

[0073] S5. Send the control strategy set and the intervention instruction to the learning terminal, so that the learning terminal executes the intervention action according to the control strategy set and the intervention instruction. The intervention action includes a prompt action and a control action. The control action is used to restrict the target application and target function of the learning terminal.

[0074] S6. During the execution of the intervention action, collect verification data and determine the verification data based on the release condition to output a completion determination result; when the completion determination result indicates that the release condition is met, output a release command to the learning terminal to cause the learning terminal to release the control action corresponding to the current stage node;

[0075] S7. Record the triggering events related to the current stage node, the intervention instructions, the completion determination results, and the intervention execution results;

[0076] S8. Determine self-discipline indicators based on the recorded information, update the structured self-discipline intervention script according to the self-discipline indicators to generate a new version identifier, write the updated structured self-discipline intervention script back to the intervention script management module, and send it to the script compilation and consistency verification module to generate an updated control strategy set corresponding to the new version identifier field.

[0077] In summary, the present invention has the following main beneficial effects:

[0078] This invention uses a data acquisition module to uniformly time-identify learning behavior data and terminal usage data and generate learning status data. An intervention script management module organizes trigger conditions, intervention action sets, and release conditions by stage nodes and manages version identification. A script compilation and consistency verification module performs consistency verification on the structured self-discipline intervention scripts and compiles them into a set of control strategies executable by the learning terminal. This achieves the goal of clear, traceable, and executable intervention rules while reducing script configuration conflicts and execution anomalies.

[0079] The intervention engine matches triggering conditions based on learning status data and determines the current stage node. The instruction generation unit generates intervention instructions that include instruction type, target object, execution duration and prompt content. The terminal control module then executes the prompt and control actions on the terminal side, thereby achieving the goal of implementing controllable and interpretable intervention on the target application and target function on the learning terminal and reducing irrelevant restrictions.

[0080] The verification module collects verification data during the intervention action and outputs the completion judgment result and triggers the release command based on the release conditions. The log recording module records the triggering event, intervention command, completion judgment result and execution result. The effect evaluation and script update module calculates self-discipline indicators based on the log and updates the parameters of the threshold field or duration field to generate a new version of the script and distribute it to form a closed loop. This achieves the goal of continuously iterating the intervention script based on the actual execution results and improving the intervention matching degree and stability. Attached Figure Description

[0081] Figure 1 This is a flowchart of the method of the present invention;

[0082] Figure 2 This is a structural block diagram of the data acquisition module of the present invention. Detailed Implementation

[0083] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0084] Example 1

[0085] refer to Figure 1-2 Structured self-discipline intervention methods and systems for education, including:

[0086] The data acquisition module is deployed within the learning terminal and includes a learning behavior acquisition unit, a terminal usage acquisition unit, and a time stamp unit. The learning terminal can be a smartphone, tablet, or personal computer, and it contains a learning application that presents learning content to the user and receives interactive learning actions.

[0087] The learning behavior collection unit collects learning task start events, learning task end events, learning content switching events, and answer submission events, and generates learning behavior records.

[0088] Each learning behavior record should include at least the task identifier field, content identifier field, event type field, and time field.

[0089] The task identifier field is used to uniquely identify a learning task, and the task identifier field can be a unique identifier in the form of a string; the content identifier field is used to uniquely identify the learning content, and the content identifier field can be a course identifier, chapter identifier, or question set identifier; the event type field is limited to one of the following: learning task start, learning task end, learning content switch, and answer submission; the time field is an integer timestamp field used to record the time when the event occurred, and the unit of the time field is milliseconds.

[0090] The learning behavior record for answer submission events further includes a submission score field, which is a numeric field used to record the score value corresponding to this submission. The range of the score value is determined by the scoring rules of the learning application.

[0091] To avoid data ambiguity caused by duplicate records, the learning behavior acquisition unit merges records with the same task identifier field, the same event type field, and a time field difference less than a set deduplication threshold, retaining only the earliest record in the time field. In this embodiment, the deduplication threshold is set to 200 milliseconds.

[0092] The terminal uses a data acquisition unit to connect to the operating system event interface of the learning terminal, collecting foreground application identifiers, screen on / off status, and unlock status, and generating a terminal usage record. The operating system event interface can be a foreground application change event interface, a screen status change event interface, or a lock screen status change event interface provided by the operating system.

[0093] Each terminal usage record includes at least an application identifier field, a status field, and a time field.

[0094] The application identifier field is used to identify the current foreground application. The application identifier field can be the application package name, application process identifier, or application identifier assigned by the operating system. The status field includes a screen on status subfield and an unlock status subfield. The screen on status subfield takes the value of on or off, and the unlock status subfield takes the value of unlock or locked. The time field is an integer timestamp field with the unit being milliseconds.

[0095] The terminal uses a data acquisition unit to record changes in foreground applications, screen on / off states, and unlock states in an event-triggered manner. Supplementary sampling is performed at fixed intervals between two change events to ensure state continuity. In this embodiment, the fixed interval is 1 second. The application identifier field, screen on / off state subfield, and unlock state subfield generated by the supplementary sampling are taken from the operating system's return values ​​at the sampling time.

[0096] The time stamp unit acquires the system clock time of the learning terminal and fills it into the time field of the learning behavior record and the time field of the terminal usage record. To reduce the non-monotonicity of the time field caused by system clock jumps, the time stamp unit simultaneously reads the monotonically increasing timer value and corrects the system clock time. In this scheme, the following quantity is defined in milliseconds: Let the system clock time be... , indicating the first The system timestamp for the next time frame is used; the monotonically increasing timer is denoted as... , indicating the first The monotonic timer value for the next time step; denoted as the initialization time. =0; for any value, when =0; Generate a corrected timestamp for the write time field. Determine by the following formula: ;in, The corrected time field value is in milliseconds. The time field remains monotonically increasing as the monotonic timer continues, thus preventing the learning state data from being reversed during sorting.

[0097] When detected When reset or unavailable, the time stamp unit degenerates to directly using the system clock time, i.e., it makes... = .

[0098] Learning status data is formed by merging learning behavior records and terminal usage records, and is sorted according to the time field. To ensure the merging process is reproducible and unambiguous, this embodiment imposes the following limitations on the merging and sorting rules:

[0099] Let the learning behavior record sequence be The terminal uses the record sequence as Each record contains a time field.

[0100] The merged record sequence is denoted as Its generation rule is to and Merge and sort by time field;

[0101] The sorting key is the time field, and the data is arranged in ascending order.

[0102] When two records have the same time field, a deterministic parallel sorting rule is adopted: learning behavior records take precedence over terminal usage records; within the same type of records, they are arranged according to the order in which they were generated.

[0103] In the merged sequence In this embodiment, the learning state data is defined as a time-series state vector. Each of them It consists of the known learning behavior state and the terminal usage state at the current moment. Specifically, for the... The time corresponding to each merged record is defined as: ;

[0104] in, For time fields; For task identifier field; For content identification fields; For event type fields; , , It is updated from the most recent learning behavior record; For front-end application identification fields; For the screen on status field; For unlock status field; , , It is updated from the most recent terminal usage record. If a certain type of record has not appeared at the initial time, the corresponding field is set to null and updated after the first appearance.

[0105] To avoid field overwriting conflicts between learning behavior records and terminal usage records, this embodiment adopts a domain-based update rule, meaning that learning behavior records are only updated. , , Terminal usage records are only updated. , , The time field is based on the time field of the currently merged record.

[0106] To ensure that subsequent triggering conditions have directly calculable state item values, the following state items can be calculated from the learning state data, and each state item is directly determined by the learning behavior record and the terminal usage record:

[0107] The duration of a learning task is denoted as the start time of the learning task for the same task identifier field. The time of the learning task completion event is recorded as The duration of the learning task for: ;in, The unit is milliseconds, and it is required that... > .

[0108] Learning task start delay, when the trigger time is The execution start time recorded by the terminal control module is Then the startup delay for: ;in, The unit is milliseconds, and it is required that... ≥ .

[0109] If the duration of the learning application deviates from the specified duration, the application identifier for the learning application will be recorded as follows. For merged sequences Time difference between two adjacent states Define indicator functions : When it is 1, and =Turn on, =Unlock; when is In this case, it is considered another situation;

[0110] Then in the time window The duration of deviation learning application within the time frame is:

[0111]

[0112] in, The unit is milliseconds; To merge the sequence number indexes in the record sequence; This is the starting timestamp of the statistical time window; This is the end timestamp of the statistical time window; For the first The time field of the merged records; For the first The time field of the merged records.

[0113] The introduction of status items allows the status item identifier field in the trigger condition entry to be mapped to a computable status item value, thus providing a clear input source for the subsequent rule matching process.

[0114] The structured self-discipline intervention system for education includes an intervention script management module and an intervention engine. The intervention script management module stores structured self-discipline intervention scripts and sets version identifiers for them. The intervention engine receives learning status data, determines the current stage node based on the triggering conditions of the structured self-discipline intervention scripts, and then generates intervention instructions based on the set of intervention actions.

[0115] The intervention script management module includes a script storage unit, a version management unit, and a script parsing unit.

[0116] The structured self-regulatory intervention scripts are stored in the form of script entries, which include a script identifier field, a version identifier field, and multiple stage node entries.

[0117] The script identifier field is used to uniquely identify a set of structured self-regulatory intervention scripts. The script identifier field is a string field. The script identifier field maintains a unique constraint within the script storage unit; that is, different script entries have different script identifier fields.

[0118] The version identifier field is used to distinguish different script versions under the same script identifier field. The version identifier field is a string field. The script storage unit uses the script identifier field and the version identifier field as a combined search key to accurately retrieve script entries by version.

[0119] Each stage node entry includes a stage identifier field, a stage priority field, a trigger condition entry, an intervention action set entry, and a release condition entry.

[0120] The stage identifier field is used to identify stage nodes. The stage identifier field can be a string field or an integer field, and it must be unique within the same script entry.

[0121] The stage priority field is an integer field. The larger the value, the higher the priority of the stage node entry. It is used to resolve selection conflicts when multiple stage node entries simultaneously meet the triggering rules.

[0122] Each trigger condition entry consists of at least one trigger rule, and each trigger rule includes a status item identifier field, a comparison operator field, and a threshold field.

[0123] The status item identifier field indicates the target status item being compared by this triggering rule. The status item identifier field is a string field. The script parsing unit maintains the interpretation rules for the status item identifier field, ensuring a definite correspondence between the status item identifier field and the parsable information in the learning status data, thus preventing the status item identifier field from being merely an abstract name without a valid value.

[0124] The comparison operator field indicates the comparison relationship. The values ​​for the comparison operator field are limited to greater than, greater than or equal to, equal to, less than or equal to, or less than. The comparison operator field can be an enumerated field or a string field. The script parsing unit verifies the validity of the comparison operator field according to the above value set.

[0125] The threshold field is a numeric field used for comparison with the status item value. The unit of the threshold field is consistent with the unit bound to the status item identifier field of the triggering rule. The script parsing unit validates the data type of the threshold field to ensure that it can participate in the numeric comparison.

[0126] Each intervention action set entry includes at least one action record, and each action record includes an action type field and an action parameter field.

[0127] The action type field can be either a prompt action or a control action. The action type field can be an enumerated field or a string field; the script parsing unit validates the validity of the action type field.

[0128] The action parameter fields include the target object identifier field, the duration field, and the prompt content field.

[0129] The target object identifier field is a string field used to identify the target object of the intervention. The target object can be a target application identifier or a target function identifier. The script parsing unit verifies the non-emptiness of the target object identifier field.

[0130] The duration field is a positive value field, with the unit being seconds, used to indicate the duration of the action. The script parsing unit verifies the positive value of the duration field.

[0131] The prompt content field is a string field used to carry the prompt text corresponding to this action. The prompt content field can be an empty string, but the field must exist to ensure that the prompt content field can be written when subsequent intervention instructions are generated.

[0132] Each release condition entry consists of at least one release rule, and each release rule includes a verification item identifier field, a comparison operator field, and a decision value field.

[0133] The validation item identifier field is a string field used to indicate the validation item to be judged in the validation data;

[0134] The values ​​for the comparison operator field are limited to greater than, greater than or equal to, equal to, less than or equal to, or less than.

[0135] The decision value field is a numeric field used for comparison with the validation item value.

[0136] Script storage units are used to store script entries. Script entries can be stored in a structured format, including key-value pairs or tables. Regardless of the storage format used, script storage units must at least satisfy the following constraints:

[0137] It can retrieve unique script entries by using the script identifier field and the version identifier field;

[0138] It can retrieve unique stage node entries within a script entry by using the stage identifier field;

[0139] It can retrieve trigger condition entries, intervention action set entries, and release condition entries within stage node entries, and maintain the relationship between the three without losing them.

[0140] The version management unit is used to set version identifiers for structured self-discipline intervention scripts, and write new version identifier fields to the updated script entries when the structured self-discipline intervention scripts are updated, while retaining the script entries and their version identifier fields before the update.

[0141] In this embodiment, the version management unit maintains an incrementing version number for the same script identifier field. ,in Let be a positive integer, and let the version number before the update be . Updated version number for: ;

[0142] The version identifier field is obtained by concatenating the script identifier field with the updated version number. Let the script identifier field be denoted as . Then the version identifier field Defined as: ;in, This represents a string concatenation function. The above definition ensures that different versions of the same script identifier field have a distinguishable version identifier field, and that the version identifier field can be directly determined from the specification.

[0143] The script parsing unit parses script entries and generates parsing results that can be used by the intervention engine. The script parsing unit performs at least the following processes:

[0144] The integrity of the script entry fields is verified. The script entry includes the script identifier field, the version identifier field, and multiple stage node entries.

[0145] The integrity of the fields in the stage node entries is verified. Each stage node entry includes a stage identifier field, a stage priority field, a trigger condition entry, an intervention action set entry, and a release condition entry.

[0146] The validity of the trigger rule fields is validated. The validation comparison operator field value belongs to greater than, greater than or equal to, equal to, less than or equal to, or less than, and the threshold field is a numeric field.

[0147] The validity of the action record fields is verified. The action type field is verified to be either a prompt action or a control action, and the action parameter field contains the target object identifier field, the duration field, and the prompt content field. The duration field is a positive value field.

[0148] After the script parsing unit passes the verification, it outputs a set of stage node entries and maintains the association between each stage node entry and its trigger rule set and action record set, so that the intervention engine can read and generate intervention instructions according to the stage node entries.

[0149] The intervention engine comprises a rule matching unit, a stage determination unit, and an instruction generation unit. The intervention engine receives learning state data, which is generated by other modules of the system and provided to the intervention engine. The learning state data contains at least parsable information corresponding to the state item identifier field, enabling the rule matching unit to extract the state item value and participate in the comparison and determination.

[0150] The rule matching unit parses the learning state data and extracts the state item values ​​corresponding to the trigger condition entries.

[0151] To ensure the determination of the value selection method corresponding to the status item identifier field, the rule matching unit maintains a status item interpretation rule table. This table, indexed by the status item identifier field, provides a method for extracting status item values ​​from the learned status data. The status item interpretation rule table includes at least one of the following two value selection methods, and each status item identifier field is bound to only one of these methods:

[0152] Direct value retrieval method: Select the most recent record containing the target status item from the learning status data by the time field, and use the value of the target status item in that record as the status item value;

[0153] Statistical value collection method: at the evaluation time Previously, a statistical interval was taken. ,in This is a positive value, expressed in seconds. Within this statistical interval, the learning state data is accumulated, counted, or subtracted to obtain the state item value. Statistical interval length. The intervention engine is fixed with specific numerical values ​​to ensure that the calculated value of the status item is unique.

[0154] When the status item identifier field of a certain triggering rule does not exist in the status item interpretation rule table, or when the learning status data is missing and the status item value cannot be obtained, the rule matching unit determines that the matching result of the triggering rule is invalid, so as to avoid generating uncertain stage determination results.

[0155] The rule matching unit compares the status item value with the threshold field according to the comparison operator field to obtain the matching result of each triggering rule. Let the status item value corresponding to a certain triggering rule be... The comparison operator field is The threshold field is The matching result Defined as: ;in, , =1 indicates that the match is true. =0 indicates that the match is not true. (Decision function) The definition is as follows:

[0156] ;

[0157] in, These are the state item values ​​obtained by the rule matching unit from the learned state data. For the threshold field in the trigger rule, This is the comparison operator field in the triggering rule. It is defined to ensure that the comparison decision has unique semantics.

[0158] The rule matching unit forms a matching result set for all triggering rules output by the script parsing unit. The matching result set contains at least the matching result corresponding to each triggering rule.

[0159] The stage determination unit determines the current stage node based on the matching results. The stage determination includes the following process:

[0160] The conditions for a single-stage node entry to be valid are as follows: for any stage node entry... Let the set of triggering rules in the node entries of this stage be . When all triggering rules in a node entry of the same stage match, that node entry is determined as a candidate stage node. (Candidate decision quantity) Defined as:

[0161]

[0162] in, To trigger the rule The matching result, if =1 indicates that the node entry in this stage is a candidate stage node; if =0 indicates that the node entry in this phase is not a candidate phase node.

[0163] Conflict resolution for multiple candidate stage node entries: When multiple stage node entries simultaneously meet the trigger rule matching condition, the stage determination unit determines the current stage node according to the stage priority field from largest to smallest. Let the stage node entries be... The stage priority field is Then the current stage node satisfy:

[0164] ;

[0165] When multiple candidate stage node entries have the same stage priority field, the stage determination unit selects one of the stage node entries as the current stage node according to the fixed sorting rule of the stage identifier field to ensure unique output. When the stage identifier field is an integer field, it is sorted in ascending order of value; when the stage identifier field is a string field, it is sorted in ascending lexicographical order.

[0166] The instruction generation unit reads the set of intervention actions corresponding to the current stage node entry and generates at least one intervention instruction based on the action type field and the action parameter field. The intervention instruction includes an instruction type field, a target object identifier field, an execution duration field, and a prompt content field. The instruction type field indicates whether the action is a prompt or a control action.

[0167] For each action record in the current stage node entry, the instruction generation unit generates intervention instructions according to the following mapping:

[0168] The instruction type field is taken from the action type field of the action record;

[0169] The target object identifier field is taken from the target object identifier field in the action parameter field of the action record.

[0170] The execution duration field is taken from the duration field in the action parameter field of the action record.

[0171] The prompt content field is taken from the prompt content field in the action parameter field of the action record.

[0172] When the intervention action set contains multiple action records, the instruction generation unit generates a corresponding intervention instruction list according to the storage order of the action records in the intervention action set and outputs the intervention instruction list. Each intervention instruction in the intervention instruction list contains an instruction type field, a target object identifier field, an execution duration field, and a prompt content field, enabling the terminal to execute the corresponding action based on the field content.

[0173] The intervention script management module stores structured self-regulatory intervention scripts with version identifiers. The intervention engine determines the current stage node and generates intervention instructions based on learning status data and trigger condition entries. This embodiment, building upon the previous embodiments, further illustrates the specific implementation methods and collaborative processes of the script compilation and consistency verification module, terminal control module, completion verification module, log recording module, and effect evaluation and script update module.

[0174] The script compilation and consistency verification module includes a script reading unit, a consistency verification unit, and a compilation and generation unit.

[0175] The script reading unit reads the structured self-regulatory intervention script corresponding to the version identifier from the intervention script management module, and extracts the stage node entries, trigger condition entries, intervention action set entries, and release condition entries from the structured self-regulatory intervention script. To ensure the uniqueness of the reading results, the script reading unit uses the script identifier field and the version identifier field as the search key, and records the set of stage node entries read as .

[0176] The data objects output by the script reading unit should at least include:

[0177] 1) A list of stage node entries, where each element contains a stage identifier field and a stage priority field;

[0178] 2) A list of trigger condition entries and trigger rules corresponding to each stage node entry;

[0179] 3) The set of intervention actions and the list of action records corresponding to each stage node item;

[0180] 4) The list of release conditions and release rules corresponding to each stage node entry.

[0181] The above output is used for subsequent consistency verification and compilation, and the relationship between each item in the output remains unchanged with the stage identifier field as the association key.

[0182] The consistency verification unit performs consistency verification on the structured self-regulatory intervention script. The consistency verification unit performs at least the following verification items, and outputs a verification failure result if any verification item fails. At the same time, it returns a failure reason identifier, which is used to locate the script entry and field position.

[0183] The script compilation and consistency verification module includes a script reading unit, a consistency verification unit, and a compilation and generation unit. It is used to convert the structured self-discipline intervention scripts with version identifiers into a set of control policies that can be executed on the learning terminal, and to perform consistency verification on the script entries before conversion to avoid execution anomalies caused by missing script entries or inconsistent field types.

[0184] The script reading unit is connected to the data interface of the intervention script management module. It is used to read the structured self-discipline intervention script corresponding to the version identifier field and extract the stage node entries, trigger condition entries, intervention action set entries and release condition entries from the structured self-discipline intervention script.

[0185] The script reading unit must perform at least the following steps:

[0186] (1) Receive the version identifier field from external input. The version identifier field is a comparable string or number.

[0187] (2) Retrieve script entries that match the version identifier field in the script entry set of the script storage unit, and read multiple stage node entries in the script entry.

[0188] (3) For each stage node entry, read the stage identifier field, stage priority field, trigger condition entry, intervention action set entry and release condition entry to form a script object to be verified.

[0189] A consistency verification unit is used to perform consistency verification on the structured self-regulatory intervention script. In this embodiment, the consistency verification includes at least the following verification items, and an error flag is output for any verification items that fail, preventing the script from proceeding to the compilation and generation step.

[0190] (1) Node integrity verification: For each stage node entry, the verification stage node entry includes trigger condition entry, intervention action set entry, and release condition entry. If any entry is missing, the verification of that stage node entry is deemed to have failed.

[0191] (2) Trigger rule field validation: For each trigger rule, validate the comparison operator field as greater than, greater than or equal to, equal to, less than or equal to, or less than, and validate the threshold field as a numeric field. A threshold field being a numeric field means that the threshold field can be parsed as an integer or a floating-point number.

[0192] (3) Action record field verification: For each action record, verify that the action type field is a prompt action or a control action, and verify that the action parameter field contains both the target object identifier field and the duration field, and that the duration field is a positive value field.

[0193] (4) Consistency verification of the same target: If there are two or more action records with the same target object identifier field in the same stage node entry, the corresponding action type field is verified to be consistent, so as to avoid the same target object from having prompt actions and control actions at the same stage, causing execution conflicts.

[0194] After the above verification, the consistency verification unit generates a verification result identifier. If the verification result identifier is "passed," the compilation unit is allowed to execute the compilation; if the verification result identifier is "failed," a failure reason identifier is output and the compilation process is terminated.

[0195] The compilation and generation unit is used to compile the structured self-regulatory intervention scripts into a set of control policies when the consistency check passes.

[0196] In this embodiment, the control policy set includes one or more policy records, each policy record being generated from an action record whose action type field is a control action. The policy record includes at least a version identifier field, a stage identifier field, a target object identifier field, and a restriction duration field, wherein the restriction duration field is determined by the duration field of the action record.

[0197] The compilation rules for the compilation generation unit can be defined in this embodiment as follows:

[0198] (1) Traverse each stage node entry in the script entries and read the stage identifier field of that stage node entry.

[0199] (2) Traverse the set of intervention action entries for the node entries in this stage, and for action records whose action type field is control action, generate strategy records by mapping the following fields:

[0200] The version identifier field is taken from the version identifier field of the script entry; the stage identifier field is taken from the stage identifier field of the stage node entry; the target object identifier field is taken from the target object identifier field of the action record; and the duration limit field is taken from the duration field of the action record.

[0201] (3) All generated policy records are encapsulated in a set to form a control policy set, and the control policy set is sent to the policy receiving unit of the terminal control module.

[0202] The terminal control module is deployed on the learning terminal and includes a policy receiving unit, an instruction receiving unit, a policy execution unit, and a prompt execution unit. It is used to receive control policy sets and intervention instructions, and to execute prompt actions and control actions on the learning terminal side.

[0203] The policy receiving unit is used to receive the control policy set and write the policy records in the control policy set into the policy table.

[0204] In this embodiment, the strategy table includes at least a version identifier field, a stage identifier field, a target object identifier field, a limit duration field, and an effective status field.

[0205] The policy receiving unit performs the following processing when writing to the policy table:

[0206] (1) When the control policy set corresponding to the new version identifier field is received, the effective status field of the policy record whose version identifier field is inconsistent with the new version identifier field in the policy table is set to invalid.

[0207] (2) Write the policy record corresponding to the new version identifier field into the policy table, and set the effective status field of the corresponding policy record to effective.

[0208] (3) For policy records with the same version identifier field, the same stage identifier field, and the same target object identifier field, retain the record with the latest written limit duration field.

[0209] The instruction receiving unit is used to receive intervention instructions and parse the instruction type field, target object identifier field, execution duration field, and prompt content field in the intervention instructions.

[0210] The instruction type field indicates whether it's a prompt action or a control action. The target object identifier field identifies the target application or function, the execution duration field indicates the duration of this instruction's execution, and the prompt content field indicates the content data to be displayed.

[0211] The policy execution unit is used to read the policy record in the policy table that matches the target object identifier field and whose effective status field is effective when the instruction type field is a control action, and to execute restrictions on the target application or target function corresponding to the target object identifier field within the time period corresponding to the restriction duration field.

[0212] In this embodiment, the execution of the restriction includes at least one or more of the following: (1) intercepting the startup operation of the target application, that is, when the learning terminal detects the startup event of the target application, it blocks the startup event from entering the running state of the target application.

[0213] (2) Intercept the call operation of the target function, that is, when the learning terminal detects the target function call event, block the call event from entering the execution path of the corresponding function.

[0214] In this embodiment, the timing rule for the restriction duration field of the policy execution unit can be defined as follows: the restriction start time is the time field when the first interception is triggered, and the restriction end time is the restriction start time plus the duration corresponding to the restriction duration field; after the restriction end time is reached, the restriction status corresponding to the target object identification field is released.

[0215] The prompt execution unit is used to output the prompt content corresponding to the prompt content field of the intervention instruction within the duration corresponding to the execution duration field when the instruction type field is a prompt action.

[0216] In this embodiment, the output method of the prompt content can be one of the following: a pop-up prompt, a floating prompt, or a full-screen prompt on the learning terminal interface. The prompt content shall at least include text content associated with the target object identification field.

[0217] When the policy execution unit imposes restrictions on the target application, it intercepts the launch operation of the target application and, after interception, calls the prompt execution unit to output the prompt content corresponding to the prompt content field of the intervention instruction.

[0218] Through this linkage mechanism, the learning terminal can output explanatory prompts while blocking non-target behavior paths, so that the prompts and control actions form a consistent terminal-side execution loop on the same target object.

[0219] The verification module includes a verification data acquisition unit, a condition parsing unit, a rule determination unit, and a release instruction output unit. It is used to collect verification data during the intervention action performed by the terminal control module, output the completion determination result according to the release condition entries, and generate a release instruction when necessary.

[0220] The verification data acquisition unit is used to collect verification data during the intervention actions performed by the terminal control module. Verification data includes learning behavior records and execution records generated by the terminal control module.

[0221] (1) The learning behavior record includes an event type field, a task identifier field, and a time field; when the event type field is a question submission event, it also includes a submission score field.

[0222] (2) The execution record includes the target object identification field, the execution status field, the execution start time field and the execution end time field, wherein the execution status field is used to identify whether the execution is in progress, the execution is completed or terminated.

[0223] The condition parsing unit is used to read the release condition entries corresponding to the current stage node and extract at least one release rule from the release condition entries.

[0224] Each deactivation rule includes a verification item identifier field, a comparison operator field, and a decision value field. The comparison operator field can be greater than, greater than or equal to, equal to, less than or equal to, or less than.

[0225] The rule determination unit is used to determine the verification item value from the verification data based on the verification item identifier field for each deregulation rule, and compare the verification item value with the determination value field according to the comparison operator field to obtain the deregulation result of the rule.

[0226] The rules for determining the value of the verification item can be defined as follows: (1) When the verification item identifier field points to the submission score field, the records with the event type field as the answer submission event are filtered from the learning behavior records, and the submission score field is taken as the verification item value.

[0227] (2) When the verification item identifier field points to the execution status field, filter the records that match the target object identifier field from the execution records, and take the execution status field as the verification item value.

[0228] (3) When the verification item identifier field points to the difference of the time field, the difference between the trigger time field of the trigger event field and the time field of the learning behavior record is taken as the verification item value.

[0229] When all the release rules in the release condition entry are true, the rule determination unit outputs the result that the release condition is met; when at least one release rule is false, the rule determination unit outputs the result that the release condition is not met.

[0230] The release instruction output unit generates a release instruction and sends it to the terminal control module when the completion judgment result indicates that the release condition is met. The release instruction includes a stage identifier field and a target object identifier field.

[0231] Upon receiving the release command, the terminal control module releases the control action corresponding to the current stage node based on the stage identifier field and the target object identifier field, and sets the execution status field to release.

[0232] The logging module includes a log generation unit, a log storage unit, and a log indexing unit. It is used to record key events in the intervention chain in a structured manner, providing a traceable data foundation for subsequent effect evaluation and script updates.

[0233] The log generation unit is used to generate log records for the current stage node. The log records include fields for log identifier, user identifier, stage identifier, trigger event, intervention instruction, completion judgment result, and execution result.

[0234] (1) The trigger event field includes the trigger time field, the trigger status item identifier field, and the trigger status item value field.

[0235] (2) The intervention instruction field includes the instruction type field, the target object identifier field, the execution duration field, and the prompt content field.

[0236] (3) The judgment result field includes the judgment time field and the judgment conclusion field.

[0237] (4) The execution result field includes the execution start time field, the execution end time field, and the execution status field. The execution status field is in progress, execution completed, or terminated.

[0238] The log storage unit is used to write log records to the log table. To ensure field consistency, the log storage unit performs formatting on the field types of the log records before writing, so that the time field is uniformly converted to a timestamp with the same time precision or a time string with the same format.

[0239] The log index unit is used to create an index for the log table. The index includes at least a user identifier field, a stage identifier field, and a trigger time field, which is used to support fast retrieval by user and stage within the evaluation time window.

[0240] The effect evaluation and script update module includes an indicator calculation unit, a parameter update unit, a version generation unit, and a distribution unit. It is used to calculate self-discipline indicators from log records, update the threshold field or duration field in the structured self-discipline intervention script accordingly, generate a new version, and distribute it to form a closed-loop iteration.

[0241] The indicator calculation unit is used to extract the trigger event field, completion judgment result field, and execution result field from the log records recorded by the log recording module, and to determine the evaluation time window based on the trigger time field and the judgment time field.

[0242] The evaluation time window can be defined as a continuous natural day window or a continuous fixed duration window. The window start point is the earliest trigger time field, and the window end point is the latest judgment time field.

[0243] The indicator calculation unit is further used to calculate self-discipline indicators within the evaluation time window. Self-discipline indicators include at least the on-time completion rate of tasks, task start delay, and number of control releases, and may further include the execution status value S.

[0244] (1) Task completion rate r: Within the evaluation time window, the judgment conclusion field is the ratio of the number of log records that meet the release conditions to the total number of log records within the evaluation time window.

[0245] (2) Task start delay L: Within the evaluation time window, calculate the time difference between the execution start time field and the trigger time field for each log record, and take the arithmetic mean of all time differences to obtain the task start delay.

[0246] (3) Number of times control is lifted U: Within the evaluation time window, the execution status field is the number of log records that are lifted.

[0247] The execution force state value S is determined by the ratio of the driving force D to the resistance R, specifically S equals D divided by R.

[0248] Among them, motivation D is obtained by weighted summation of psychological motivation intensity M, environmental reinforcement coefficient E, and physiological energy level P; resistance R is obtained by weighted summation of internal resistance index I, external interference coefficient N, and task complexity C. The weighting coefficients are w1, w2, w3 and a1, a2, a3, respectively.

[0249] The calculation methods for each variable are given, which can be directly determined from existing collected data and log data, and all variables are calculated within the same evaluation time window:

[0250] (a) Intensity of psychological motivation The on-time completion rate (r) and the length of consecutive completed segments are jointly determined. The length of consecutive completed segments is the maximum length of consecutive segments that meet the release condition after sorting by the trigger time field and using the "consequence" field as the judgment conclusion. It can be defined as a weighted sum of r and the normalized value of the length of the continuous completed segment.

[0251] (b) Environmental enhancement coefficient The effective trigger count and effective completion count of the prompt action are jointly determined. The effective trigger count is the number of log records in the intervention instruction field where the instruction type field is a prompt action; the effective completion count is the number of log records in the above-mentioned log records where the judgment conclusion field meets the release condition. It can be defined as the ratio of the number of valid completions to the number of valid triggers.

[0252] (c) Physiological energy level The rest duration is determined by the continuous time interval between screen on / off states and unlocked states recorded in the terminal usage log. The continuous rest duration is the length of the consecutive time period during which the screen is off when on and locked when unlocked. It can be defined as the normalized mean of the continuous rest duration within the evaluation time window.

[0253] (d) Intrinsic resistance index The number of repeated interceptions after the prompt is determined by the task startup delay L and the number of times the interception is repeated after the prompt. The number of repeated interceptions after the prompt is the number of times that multiple interception records appear in the execution result field corresponding to the same triggering event field. It can be defined as a weighted sum of the normalized value of L and the normalized value of the number of repeated interceptions.

[0254] (e) External interference coefficient The duration of non-learning applications is determined by the cumulative time spent using the foreground application identifier in the terminal usage record. Non-learning applications are determined by a set of application identifier fields outside the target object identifier field set. This is the normalized value of the cumulative duration.

[0255] (f) Task complexity The number of triggering rules and the number of deactivation rules within a stage node entry are jointly determined. The number of triggering rules is the number of triggering rules in the triggering condition entry, and the number of deactivation rules is the number of deactivation rules in the deactivation condition entry. It is the normalized value of the sum of the two.

[0256] In this embodiment, the normalized value can be calculated by linearly normalizing the minimum and maximum values ​​within the same evaluation time window. The linearly normalized value is equal to the ratio of the difference between the current value and the minimum value of the variable to the difference between the maximum value and the minimum value. To avoid the denominator being zero, the linearly normalized value is set to 0 when the maximum and minimum values ​​are equal.

[0257] In obtaining , , , , , back, .

[0258] in , , The sum is 1. , , The sum of all values ​​is 1, and all weight coefficients are non-negative. These weight coefficients can be stored as system parameters in the learning terminal or server-side configuration and remain unchanged within the evaluation period corresponding to the same version identifier field.

[0259] The parameter update unit is used to update at least one threshold field or at least one duration field in the structured self-discipline intervention script according to the self-discipline indicators, so as to obtain the updated structured self-discipline intervention script.

[0260] Intervention intensity is reflected through a threshold field and a duration field: the threshold field determines the threshold for triggering the action, and the duration field determines the duration of the prompt or control action. The intervention intensity can be dynamically adjusted by modifying these two fields.

[0261] To ensure the reproducibility of the update rules, a deterministic update strategy is provided, and the update objects are limited to the threshold field and duration field in the script entries:

[0262] (1) When the execution state value When the value is less than 1, the parameter update unit selects to update at least one duration field, increasing the control action restriction duration field in the corresponding stage node entry by a preset step size. Alternatively, the preset step size can be added to the prompt action execution duration field. . The preset step time indicates the increment or decrement when updating the duration field, in seconds or minutes; It is a positive value field, stored in the system parameter table, and the update cycle of the script corresponding to the same version identifier field remains unchanged.

[0263] (2) When the on-time completion rate r of the task is lower than the target completion rate threshold r0, the parameter update unit selects at least one threshold field in the update trigger rule to make the trigger condition be established earlier or more easily, and the update magnitude is a preset step size. . The preset step size threshold indicates the increment or decrement when updating the threshold field, and the unit is the same as that of the threshold field; It is a positive value field, stored in the system parameter table, and the update cycle of the script corresponding to the same version identifier field remains unchanged.

[0264] (3) When the number of times the control is lifted U is higher than the threshold number of times the control is lifted U0, the parameter update unit selects to update at least one duration field, so that the control action restriction duration field is reduced by a preset step. Alternatively, the preset step size can be added to the prompt action execution duration field. This is to reduce the repeated lifting of restrictions caused by simply extending control measures.

[0265] (4) When the task start delay L is higher than the start delay threshold L0, the parameter update unit selects to update the prompt content version corresponding to the prompt content field, or update the prompt action execution duration field, so that the duration of the prompt action increases by a preset step. This update improves the duration of the prompt action's coverage of the startup behavior. It does not change the field names, only the field values.

[0266] Among them, r0, U0, L0, , These are all system parameters, which can be stored in association with the version identifier field and remain unchanged within the same version identifier field period.

[0267] To avoid parameter out-of-bounds errors during updates, this embodiment also limits the value range of the threshold field and the duration field: the minimum value of the threshold field is not less than 0, and the minimum value of the duration field is greater than 0; when the updated field value touches the boundary, the boundary value is taken.

[0268] The version generation unit is used to write a new version identifier field for the updated structured self-regulatory intervention script.

[0269] The new version identifier field can be generated by combining the old version identifier field with the update time field, or by a monotonically increasing version sequence number, ensuring that different version identifier fields are distinct. While writing the new version identifier field, the version generation unit retains the script entries and their version identifier fields from before the update to support backtracking.

[0270] The distribution unit is used to write back the updated structured self-discipline intervention script to the intervention script management module, and send the updated structured self-discipline intervention script to the script compilation and consistency verification module to generate an updated control policy set corresponding to the new version identifier field and distribute it to the terminal control module.

[0271] The issuing unit must perform at least the following steps:

[0272] (1) Write the updated script entries into the script storage unit and register the version identifier field to the version management unit.

[0273] (2) Trigger the script compilation and consistency verification module to execute script reading, consistency verification and compilation to obtain the new version of the control policy set.

[0274] (3) Send the new version control policy set to the policy receiving unit of the terminal control module, and invalidate the old version policy record and make the new version policy record effective.

[0275] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A structured self-discipline intervention system for education, characterized in that, include: The data acquisition module is used to collect user learning behavior data and terminal usage data on the learning terminal, and to time-stamp the learning behavior data and terminal usage data to generate learning status data. The intervention script management module is used to store structured self-discipline intervention scripts and set version identifiers for the structured self-discipline intervention scripts; the structured self-discipline intervention scripts include multiple stage nodes, as well as trigger conditions, intervention action sets and release conditions corresponding to each stage node; An intervention engine is used to receive the learning state data, determine the current stage node based on the triggering conditions of the structured self-discipline intervention script, and then generate intervention instructions according to the set of intervention actions. The script compilation and consistency verification module is used to perform consistency verification on the structured self-discipline intervention script and compile the structured self-discipline intervention script into a set of control strategies that can be executed by the learning terminal. A terminal control module, deployed on the learning terminal, is used to receive the control strategy set and the intervention instructions, and to execute intervention actions according to the control strategy set and the intervention instructions; the intervention actions include prompt actions and control actions, and the control actions are used to restrict the target applications and target functions of the learning terminal; The verification module is used to collect verification data during the intervention action performed by the terminal control module, and to determine the verification data based on the release condition to output a completion determination result. When the completion determination result indicates that the release condition is met, the completion verification module outputs a release command to the terminal control module so that the terminal control module releases the control action corresponding to the current stage node. The log recording module is used to record triggering events related to the current stage node, the intervention instructions, the completion determination results, and the intervention execution results; The effect evaluation and script update module is used to determine self-discipline indicators based on the information recorded by the log recording module, update the structured self-discipline intervention script according to the self-discipline indicators to generate a new version identifier, write the updated structured self-discipline intervention script back to the intervention script management module, and send it to the script compilation and consistency verification module to generate an updated control strategy set.

2. The structured self-discipline intervention system for education according to claim 1, characterized in that, The data acquisition module includes a learning behavior acquisition unit, a terminal usage acquisition unit, and a time stamp unit; The learning behavior acquisition unit is connected to the learning application interaction interface of the learning terminal, and acquires learning task start events, learning task end events, learning content switching events, and answer submission events, and generates learning behavior records; the learning behavior records include task identifier fields, content identifier fields, event type fields, and time fields; The terminal uses a data acquisition unit to connect to the operating system event interface of the learning terminal, acquires the foreground application identifier, screen on status, and unlock status, and generates a terminal usage record; the terminal usage record includes an application identifier field, a status field, and a time field; The time identification unit obtains the system clock time of the learning terminal and fills the system clock time into the time field of the learning behavior record and the time field of the terminal usage record. The learning status data is formed by merging the learning behavior records written in the time field and the terminal usage records, and the learning behavior records and the terminal usage records are sorted according to the time field.

3. The structured self-discipline intervention system for education according to claim 1, characterized in that, The intervention script management module includes a script storage unit, a version management unit, and a script parsing unit; The structured self-discipline intervention script is stored in the form of script entries, which include a script identifier field, a version identifier field, and multiple stage node entries. Each stage node entry includes a stage identifier field, a stage priority field, a trigger condition entry, an intervention action set entry, and a release condition entry; The trigger condition entry consists of at least one trigger rule, and each trigger rule includes a status item identifier field, a comparison operator field, and a threshold field; The set of intervention actions includes at least one action record. Each action record includes an action type field and an action parameter field. The action type field is either a prompt action or a control action. The action parameter field includes a target object identifier field, a duration field, and a prompt content field. The release condition entry consists of at least one release rule, and each release rule includes a verification item identifier field, a comparison operator field, and a judgment value field; When the structured self-regulatory intervention script is updated, the version management unit writes a new version identifier field into the updated script entries and retains the script entries and their version identifier fields from before the update.

4. The structured self-discipline intervention system for education according to claim 3, characterized in that, The intervention engine includes a rule matching unit, a phase determination unit, and an instruction generation unit; The rule matching unit parses the learning state data and extracts the state item values ​​corresponding to the trigger condition entries; The rule matching unit compares the state item value with the threshold field according to the comparison operator field to obtain the matching result of each triggering rule; The stage determination unit determines the current stage node based on the matching result. The stage determination includes: when all triggering rules in the same stage node entry match, the stage node entry is determined as the current stage node. When multiple stage node entries simultaneously meet the triggering rule matching, the current stage node is determined according to the stage priority field from largest to smallest. The instruction generation unit reads the set of intervention actions corresponding to the current stage node entry, and generates at least one intervention instruction based on the action type field and the action parameter field. The intervention instruction includes an instruction type field, a target object identifier field, an execution duration field, and a prompt content field. The instruction type field is a prompt action or a control action.

5. The structured self-discipline intervention system for education according to claim 4, characterized in that, The script compilation and consistency verification module includes a script reading unit, a consistency verification unit, and a compilation and generation unit; The script reading unit reads the structured self-discipline intervention script corresponding to the version identifier from the intervention script management module, and extracts the stage node entries, trigger condition entries, intervention action set entries, and release condition entries from the structured self-discipline intervention script; The consistency verification unit performs a consistency verification on the structured self-discipline intervention script, and the consistency verification includes: For each stage node entry, verify that the stage node entry simultaneously contains a trigger condition entry, an intervention action set entry, and a release condition entry; For each triggering rule, the comparison operator field is verified to be greater than, greater than or equal to, equal to, less than or equal to, or less than, and the threshold field is a numerical field; For each action record, verify that the action type field is either a prompt action or a control action, and that the action parameter field simultaneously includes the target object identifier field, the duration field, and the prompt content field; the duration field is a positive value field; when the action type field is a prompt action, the prompt content field is a non-empty string. For each action record in the same stage node entry, verify that if there are two or more action records with the same target object identifier field, their action type field is consistent. When the consistency check passes, the compilation and generation unit compiles the structured self-discipline intervention script into a management and control policy set, which includes one or more policy records. Each policy record is generated from an action record whose action type field is a control action, and each policy record includes a version identifier field, a stage identifier field, a target object identifier field, and a restriction duration field, wherein the restriction duration field is determined by the duration field.

6. The structured self-discipline intervention system for education according to claim 5, characterized in that, The terminal control module includes a policy receiving unit, an instruction receiving unit, a policy execution unit, and a prompt execution unit; The policy receiving unit is used to receive the control policy set and write the policy records in the control policy set into the policy table; the policy table includes a version identifier field, a stage identifier field, a target object identifier field, a limit duration field, and an effective status field; The instruction receiving unit is used to receive the intervention instruction and parse the instruction type field, target object identifier field, execution duration field, and prompt content field in the intervention instruction; The policy execution unit is used to read the policy record in the policy table that matches the target object identifier field and whose effective status field is effective when the instruction type field is a control action, and to perform restrictions on the target application or target function corresponding to the target object identifier field within the time period corresponding to the restriction duration field. The prompt execution unit is used to output the prompt content corresponding to the prompt content field of the intervention instruction within the duration corresponding to the execution duration field when the instruction type field is a prompt action; When the policy execution unit imposes restrictions on the target application, it intercepts the launch operation of the target application and, after interception, calls the prompt execution unit to output the prompt content corresponding to the prompt content field of the intervention instruction.

7. The structured self-discipline intervention system for education according to claim 6, characterized in that, The verification completion module includes a verification data acquisition unit, a condition parsing unit, a rule determination unit, and a release instruction output unit; The verification data acquisition unit is used to collect verification data during the intervention action performed by the terminal control module. The verification data includes learning behavior records and execution records generated by the terminal control module. The learning behavior records include an event type field, a task identifier field, and a time field, and further include a submission score field when the event type field is a question submission event. The execution records generated by the terminal control module include a target object identifier field, an execution status field, an execution start time field, and an execution end time field. The condition parsing unit is used to read the release condition entries corresponding to the current stage node and extract at least one release rule from the release condition entries; The rule determination unit is used to determine the verification item value from the verification data according to the verification item identifier field for each of the removal rules, and compare the verification item value with the determination value field according to the comparison operator field to obtain the determination result of the removal rule; The comparison operator field is greater than, greater than or equal to, equal to, less than or equal to, or less than; The rule determination unit is further configured to output the completion determination result as satisfying the release condition when all the determination results of the release rules in the release condition entry are true, and to output the completion determination result as not satisfying the release condition when at least one release rule is false. The release instruction output unit is used to generate a release instruction and send it to the terminal control module when the completion judgment result is that the release condition is met. The release instruction includes a stage identifier field and a target object identifier field. The terminal control module releases the control action corresponding to the current stage node based on the stage identifier field and the target object identifier field.

8. The structured self-discipline intervention system for education according to claim 7, characterized in that, The log recording module includes a log generation unit, a log storage unit, and a log indexing unit; The log generation unit is used to generate log records for the current stage node. The log records include a log identifier field, a user identifier field, a stage identifier field, a trigger event field, an intervention instruction field, a completion judgment result field, and an execution result field. The trigger event field includes a trigger time field, a trigger status item identifier field, and a trigger status item value field; The intervention instruction field includes an instruction type field, a target object identifier field, an execution duration field, and a prompt content field; The completion judgment result field includes a judgment time field and a judgment conclusion field; The execution result fields include an execution start time field, an execution end time field, and an execution status field; The execution status field is either in progress, execution completed, or released. The log storage unit is used to write the log records into the log table; The log indexing unit is used to create an index for the log table. The index includes a user identifier field, a stage identifier field, and a trigger time field.

9. The structured self-discipline intervention system for education according to claim 8, characterized in that, The effect evaluation and script update module includes an indicator calculation unit, a parameter update unit, a version generation unit, and a distribution unit; The indicator calculation unit is used to extract the trigger event field, the completion judgment result field, and the execution result field from the log records recorded by the log recording module, and to determine the evaluation time window based on the trigger time field and the judgment time field; The indicator calculation unit is further used to calculate self-discipline indicators within the evaluation time window. The self-discipline indicators include at least the task on-time completion rate, task start delay, and number of control releases. The task on-time completion rate is the ratio of the number of log records in the completion judgment result field whose judgment conclusion field meets the release condition to the total number of log records within the evaluation time window. The task start delay is the time difference between the trigger time field and the execution start time field. The number of control releases is the number of log records whose execution status field is released. The parameter update unit is used to update at least one threshold field or at least one duration field in the structured self-discipline intervention script according to the self-discipline index, so as to obtain the updated structured self-discipline intervention script. The version generation unit is used to write a new version identifier field for the updated structured self-discipline intervention script; The distribution unit is used to write back the updated structured self-discipline intervention script to the intervention script management module, and send the updated structured self-discipline intervention script to the script compilation and consistency verification module to generate an updated control policy set corresponding to the new version identifier field and distribute it to the terminal control module.

10. A structured self-discipline intervention method for education, applicable to the structured self-discipline intervention system for education as described in any one of claims 1-9, characterized in that, Includes the following steps: S1. Collect user learning behavior data and terminal usage data on the learning terminal, and time-stamp the learning behavior data and terminal usage data to generate learning status data; S2. Read the structured self-discipline intervention script with version identifier. The structured self-discipline intervention script includes multiple stage nodes, as well as the triggering conditions, intervention action set and release conditions corresponding to each stage node. S3. Perform consistency verification on the structured self-discipline intervention script, and compile the structured self-discipline intervention script that passes the consistency verification into a set of control strategies that can be executed by the learning terminal; S4. Determine the current stage node based on the learning state data and the triggering conditions of the structured self-discipline intervention script, and generate intervention instructions according to the set of intervention actions corresponding to the current stage node; S5. Send the control strategy set and the intervention instruction to the learning terminal, so that the learning terminal executes the intervention action according to the control strategy set and the intervention instruction. The intervention action includes a prompt action and a control action. The control action is used to restrict the target application and target function of the learning terminal. S6. During the execution of the intervention action, verification data is collected, and the verification data is judged based on the release condition to output the completion judgment result; When the completion determination result indicates that the release condition is met, a release command is output to the learning terminal, causing the learning terminal to release the control action corresponding to the current stage node. S7. Record the triggering events related to the current stage node, the intervention instructions, the completion determination results, and the intervention execution results; S8. Determine self-discipline indicators based on the recorded information, update the structured self-discipline intervention script according to the self-discipline indicators to generate a new version identifier, write the updated structured self-discipline intervention script back to the intervention script management module, and send it to the script compilation and consistency verification module to generate an updated control strategy set corresponding to the new version identifier field.